-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Bug: Using mock-fs in beforeEach hooks breaks console.log()s #5792
Comments
I'll try to shed some light on this issue.
This method is used here: seems that the error comes from The There is a similar issue in I'm not sure what is the wanted behavior here, but using this example should work fine. |
To add more, if |
Seems to me that calling |
I've started on support for an |
Possible workaround
|
Does it happen with |
happends on most recent jest@24 |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
For some reason, using mock-fs in
beforeEach()
hooks causes all calls toconsole.log
init()
functions to throw aENOENT, no such file or directory '/path/to/project/node_modules/callsites'
error.envinfo:
Reproduction repo: https://github.com/AriaMinaei/jest-mock-fs-bug
The text was updated successfully, but these errors were encountered: