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 mocking fs and using mkdirp within your codebase, mkdirp doesn't use the fs mock.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal repository on GitHub that we can npm install and npm test.
https://github.com/skevy/jest-mkdirp-issue -- npm install && npm test, and then observe that 1) the test fails and 2) an actual directory is created in the folder that contains this repo.
What is the expected behavior?
Test should pass, and it should use the fake filesystem provided by the fs mock.
Run Jest again with --debug and provide the full configuration it prints. Please mention your node and npm version and operating system.
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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When mocking
fs
and usingmkdirp
within your codebase,mkdirp
doesn't use thefs
mock.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal repository on GitHub that we can
npm install
andnpm test
.https://github.com/skevy/jest-mkdirp-issue --
npm install && npm test
, and then observe that 1) the test fails and 2) an actual directory is created in the folder that contains this repo.What is the expected behavior?
Test should pass, and it should use the fake filesystem provided by the
fs
mock.Run Jest again with
--debug
and provide the full configuration it prints. Please mention your node and npm version and operating system.Node Version: 6.3.1
NPM Version: 3.10.3
The text was updated successfully, but these errors were encountered: