Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fsHelper.pathExist when path does not exist #482

Merged
merged 6 commits into from
Feb 26, 2023

Conversation

nikitakarpenkov
Copy link
Contributor

Explain your changes

Corrects a bug where an existing path in git was identified as non-existent.

Does this close any currently open issues?


closes #481

  • Jest test added to check the fix is applied.

Any particular element that can be tested locally


Any other comments


@scolladon
Copy link
Owner

scolladon commented Feb 24, 2023

Hi @nikitakarpenkov !

Thank you very much for this PR, really appreciated

I'll check the issue locally soon and the fix as well.

What would be great is to add a unit test in the related test class so we can make sure the failing use case is covered
I can see that there is no spec for the pathExist method in the fsHelper.test.js file.
If you are ok, I can take care of the tests, just let me know.

@codecov
Copy link

codecov bot commented Feb 24, 2023

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (57f78ef) compared to base (a07bbf3).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #482   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           31        31           
  Lines          817       817           
=========================================
  Hits           817       817           
Impacted Files Coverage Δ
src/service/inFileHandler.js 100.00% <100.00%> (ø)
src/utils/fsHelper.js 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/utils/fsHelper.js Outdated Show resolved Hide resolved
@scolladon scolladon changed the title fix: correct check for path existence (#481) fix: fsHelper.pathExist when path returns git null content (#481) Feb 24, 2023
@codeclimate
Copy link

codeclimate bot commented Feb 26, 2023

Code Climate has analyzed commit 57f78ef and detected 0 issues on this pull request.

View more on Code Climate.

Copy link
Owner

@scolladon scolladon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@scolladon scolladon changed the title fix: fsHelper.pathExist when path returns git null content (#481) fix: fsHelper.pathExist when path does not exist (#481) Feb 26, 2023
@scolladon scolladon enabled auto-merge (squash) February 26, 2023 16:33
@scolladon scolladon changed the title fix: fsHelper.pathExist when path does not exist (#481) fix: fsHelper.pathExist when path does not exist Feb 26, 2023
@scolladon scolladon enabled auto-merge (squash) February 26, 2023 16:34
@scolladon scolladon merged commit eb3de49 into scolladon:main Feb 26, 2023
scolladon added a commit that referenced this pull request Feb 26, 2023
* fix: correct check for path existence (#481)

* refactor: remove null check

* test: implement `pathExists` spec

* test: fix domain tests

* refactor: simplify implementation a bit

* build: upgrade dependencies

---------

Co-authored-by: Sébastien Colladon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleting one file from LWC bundle puts entire component to destructiveChanges
2 participants