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
ENOENT: no such file or directory, open '/private/var/folders/_4/y5tgvqvx12n9gyl97xvdgpxm0000gq/T/jest_dz/ts-jest/ce/607fabb27dcc5bf120948e1a795d93148671b2/e9a8ee471bc676fe755c57379268f21a1390a7a4'
The stack trace is:
at TsJestTransformer.getCacheKey (../../node_modules/ts-jest/dist/ts-jest-transformer.js:245:40)
at ScriptTransformer._getCacheKey (../../node_modules/@jest/transform/build/ScriptTransformer.js:281:41)
at ScriptTransformer._getFileCachePath (../../node_modules/@jest/transform/build/ScriptTransformer.js:352:27)
at ScriptTransformer.transformSource (../../node_modules/@jest/transform/build/ScriptTransformer.js:595:32)
at ScriptTransformer._transformAndBuildScript (../../node_modules/@jest/transform/build/ScriptTransformer.js:765:40)
at ScriptTransformer.transform (../../node_modules/@jest/transform/build/ScriptTransformer.js:822:19)
Any idea what can cause that?
The text was updated successfully, but these errors were encountered:
I am leaving this here for anyone who needs it in the future.
My testing says that you need to turn off the mocking between tests because Jest can't do its own internal logging. That's the best reason I can come up with anyway. Info in the README
You also need to turn off the mocking if you're doing anything with snapshots. The README has this information at the bottom.
import*asmockFsfrom'mock-fs';describe('your test',()=>{beforeEach(()=>{mockFs({// Mocked file system});});afterEach(()=>{mockFs.restore();});// Your tests});
Using
mock-fs
gives me the following error:The stack trace is:
Any idea what can cause that?
The text was updated successfully, but these errors were encountered: