question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jest: sporadic "failed to cache transform results" error

See original GitHub issue

I’m observing sporadic errorneous behaviour when running tests. janosimas reported the same issue here: #175

grafik

Observation: For the last 4 occurrences, the error message is about file random.alea.js. Not true - sporadic on any test file.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolodaviscommented, Aug 11, 2018

Let’s go with patch-1 if you think it will fix the problem. This just involves adding:

"graceful-fs": "https://github.com/mekwall/node-graceful-fs.git#patch-1"

to package.json, correct?

Maybe I can apply that line at my machine locally only, so no source change is necessary. Is there a way to perform that, other than myself being really careful about package.json modifications?

I think this fix will benefit other developers here (including reducing the flakiness on the CI, although I think I’ve seen this error exactly once, so I wouldn’t say it’s a very prevalent problem), so I’m in favor of getting it in.

0reactions
nicolodaviscommented, Feb 28, 2020

Perhaps it is indeed time to evaluate if this can be removed. Thanks for looking into this @ksjogo!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jest fails all the time due to "Failed to cache transform results ...
Most of my calls to jest.runCLI (I run jest from a gulpfile ) end up with the following error: jest: failed to cache...
Read more >
How can I clear the Jest cache? - Stack Overflow
As of Jest 22.0.0+, you can use the --clearCache option: Deletes the Jest cache directory and then exits without running tests.
Read more >
Fix Jest's "failed to cache transform results in..EPERM
Fix Jest's "failed to cache transform results in..EPERM: operation not permitted" on Windows. jest, node, windows.
Read more >
Configuring Vitest
At the moment Vitest stores cache for test results to run the longer and failed tests first. cache.dir #. Type: string; Default: node_modules/....
Read more >
Hey guys has anyone seen this before when running builds on
Test suite failed to run jest: failed to cache transform results in: ... Just started today I'm wondering if I'm doing something wrong...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found