New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jest process "watch-tests" ended unexpectedly: npm not found #867
Comments
I tried uninstalling, cleaning prefs, reinstalling, but no dice. |
We use the same config in another repo where these errors don't appear. I am trying to find out what is diff |
this usually indicates a shell env issue. Try to start vscode from a terminal (instead of UI). more detailed info here |
I always start it from shell, and all my windows work fine. If the app can't find npm in PATH then I presume PATH must be different suddenly. Hmmm |
ok, got vscode updates and the issue is gone...may have been some local state that got corrupt. Tnx for your time |
Environment
vscode-jest version
:v4.4.0
node -v
:v16.14.2
npm -v
oryarn --version
:8.5.0
npm ls jest
ornpm ls react-scripts
(if you haven’t ejected):react-scripts@5.0.1
Prerequisite
npm test
which runsreact-scripts test
Steps to Reproduce
Open a react-scripts project that has the extension installed. Only upon startup is an error shown, and the waiting script re-runs successfully after touching any file. Race condition?
Also, setting a custom command is giving the same errors.
The jest config:
Relevant Debug Info
Without configuring anything (out of the box) I see this error:
Expected Behavior
No error messages
Actual Behavior
Error messages
The fastest (and the most fun) way to resolve the issue is to submit a pull-request yourself. If you are interested, feel free to check out the contribution guide, we look forward to seeing your PR...
The text was updated successfully, but these errors were encountered: