-
Notifications
You must be signed in to change notification settings - Fork 220
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(readFile): handle path doesn't exist error for new file #208
Conversation
b57d28b
to
c182c2c
Compare
c182c2c
to
d319c68
Compare
@d3viant0ne I am facing the same issue as mentioned above in my project. I have a file glob mentioned in the karma config. I have spec files created in my project that match this file pattern. When I run the tests, I get the "Path doesn't exist" error coming from MemoryFileSystem.prototype.readFileSync. There are multiple solutions suggested in various links including:
Unfortunately, none of these solutions are working for me. I cannot capture the exact fix that you have posted for this issue. Could you suggest a way out of this problem? |
Looks like the problem is still here. |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
With auto watch enabled, add a new test after the initial rest run and it will throw.
Reproducible here. Thanks @Silviu-Marian
https://github.com/Silviu-Marian/karma-webpack-pr69
What is the new behavior?
Added a try/catch clause to guard against a "Path doesn't exist" error
coming from
MemoryFileSystem.prototype.readFileSync
when a new file isadded to the file-system that matches the files glob.
Does this PR introduce a breaking change?
If this PR contains a breaking change, please describe the following...
Other information:
Closes #40
Closes #69