We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2047a36 commit 2c2d59bCopy full SHA for 2c2d59b
packages/jest-transform/src/ScriptTransformer.ts
@@ -933,6 +933,12 @@ const readCacheFile = (cachePath: Config.Path): string | null => {
933
try {
934
fileData = fs.readFileSync(cachePath, 'utf8');
935
} catch (e) {
936
+ // on windows write-file-atomic is not atomic which can
937
+ // result in this error
938
+ if (e.code === 'ENOENT' && process.platform === 'win32') {
939
+ return null;
940
+ }
941
+
942
e.message =
943
'jest: failed to read cache file: ' +
944
cachePath +
0 commit comments