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
Your Windows build number: Microsoft Windows [Version 10.0.17134.1006]
What you're doing: /node_modules/.bin/jest -c jest/config.base.js
What's wrong is that sometimes files are not found. The files that are not found change from one test run to another. In some test runs, all files are found, in others, very few files are found. Sometimes for ten test runs, npm cannot find files, and then on the 11th test run, it can find the files.
Here is a sample of some of the errors we see.
ENOENT: no such file or directory, open '/mnt/c/dev/proj/node_modules/lodash/_mapCacheSet.js'
[BABEL] /mnt/c/dev/proj/src/libraries/jestExtensions/index.ts: ENOENT: no such file or directory, lstat '/mnt/c/dev/proj/node_modules/@babel/helper-create-class-features-plugin/node_modules/@babel/types/lib/traverse' (While processing: "/mnt/c/dev/proj/node_modules/@babel/plugin-proposal-class-properties/lib/index.js")
Cannot find module './lib/state.js' from 'parallel.js'
However, Jest was able to find:
'./request.js'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js', 'json', 'ts'].
See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string
However, Jest was able to find:
'../utils.js'
What should happen instead is that test runs should completes reliably. If we run the tests once, and they all pass, then on an 2nd run immediately after, the tests should pass (whereas now, on the nth run, sometimes files are not found, as above).
Some additional information that might be useful.
We have Node and NPM installed only in WSL.
We have one version of Node: v8.16.2.
We have one version of NPM: 6.4.1.
We have VS Code installed and are using it via its WSL extension.
We are running the npm command through bash directly (not through VS Code).
We are clearing the jest cache each test run.
We have tried uninstalling and reinstalling Node.
We have tried restarting WSL Get-Service LxssManager | Restart-Service.
We have tried deleting and reinstalling the node_modules directory.
We have disabled all anti-virus-related software including Windows Defender.
This is #14 aka #2097 aka landing zone #1529. TL;DR, reading the duplicates won't move you forward despite their length, because the latter is still open. Operating on /home will help, as you have already surmised. Using WSL2 will help even more.
Your Windows build number:
Microsoft Windows [Version 10.0.17134.1006]
What you're doing:
/node_modules/.bin/jest -c jest/config.base.js
What's wrong is that sometimes files are not found. The files that are not found change from one test run to another. In some test runs, all files are found, in others, very few files are found. Sometimes for ten test runs, npm cannot find files, and then on the 11th test run, it can find the files.
Here is a sample of some of the errors we see.
What should happen instead is that test runs should completes reliably. If we run the tests once, and they all pass, then on an 2nd run immediately after, the tests should pass (whereas now, on the nth run, sometimes files are not found, as above).
Some additional information that might be useful.
v8.16.2
.6.4.1
.npm
command through bash directly (not through VS Code).jest
cache each test run.Get-Service LxssManager | Restart-Service
.node_modules
directory.The text was updated successfully, but these errors were encountered: