You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing a function whose job is to open files, the test will fail if another test file imports mock-fs.
I receive the following error: Error: UNKNOWN: unknown error, open MOCKED-FILE-PATH-HERE
This error disappears and the test passes when I comment out the mock-fs import in another file. The other file simply needs to import mock-fs. It does not need to actually use the package for the tests to fail.
The text was updated successfully, but these errors were encountered:
When testing a function whose job is to open files, the test will fail if another test file imports
mock-fs
.I receive the following error:
Error: UNKNOWN: unknown error, open MOCKED-FILE-PATH-HERE
This error disappears and the test passes when I comment out the mock-fs import in another file. The other file simply needs to import mock-fs. It does not need to actually use the package for the tests to fail.
The text was updated successfully, but these errors were encountered: