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

Ignore errors in fs.exists #401

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Ignore errors in fs.exists #401

merged 1 commit into from
Oct 31, 2024

Conversation

tschaub
Copy link
Owner

@tschaub tschaub commented Oct 31, 2024

Node's fs.exists() never throws. And the fs.existsSync() is called with false on any errors.

Fixes #400.

@tschaub tschaub merged commit 533ff93 into main Oct 31, 2024
12 checks passed
@tschaub tschaub deleted the exists branch October 31, 2024 01:42
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.

fs.existsSync mock incorrectly throws ENOTDIR when the real fs.existsSync returns false
1 participant