node -v: 12.9.1yarn -v: 1.21.1npm ls jest or npm ls react-scripts (if you haven鈥檛 ejected): [email protected]your vscode-jest settings if customized:
Operating system: macOS 10.15.2
npm run test or node_modules/.bin/jest) yarn test--passWithNoTests, vscode-jest will still consider jest failed."test": echo "no test yet"from folder-1 output channel:
Done in 0.93s.
Starting Jest in Watch mode failed too many times and has been stopped.
Consider add this workspace folder to disabledWorkspaceFolders
see troubleshooting: https://github.com/jest-community/vscode-jest/blob/master/README.md#troubleshooting
from folder-2 output channel:
yarn run v1.21.1
$ echo 'test not yet implemented' --testLocationInResults --json --useStderr --outputFile /var/folders/vg/yw9mltwd1mj_29xbvhwywc980000gn/T/jest_runner_core.json --watch --no-coverage --no-color --reporters default --reporters /Users/xxx/.vscode/extensions/orta.vscode-jest-3.1.0/out/reporter.js
test not yet implemented --testLocationInResults --json --useStderr --outputFile /var/folders/vg/yw9mltwd1mj_29xbvhwywc980000gn/T/jest_runner_core.json --watch --no-coverage --no-color --reporters default --reporters /Users/xxx/.vscode/extensions/orta.vscode-jest-3.1.0/out/reporter.js
Done in 0.06s.
Starting Jest in Watch mode failed too many times and has been stopped.
Consider add this workspace folder to disabledWorkspaceFolders
see troubleshooting: https://github.com/jest-community/vscode-jest/blob/master/README.md#troubleshooting
right now all failures in a workspace env suggest users to "disableWorkspaceFolders", which is not always helpful
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...
+1
Yep, without the folder name in which it failed, it's quite hard to detect which folder has a problem in a workspace with multiple projects
I had the same issue, and my problem ended up being that I was using nvm, so the plugin couldn't find node.
My solution ended up being installing node using one of the recommended installers.
I also have a workspace with multiple projects, and running VSCODE from within the project folder, in which my test folder is found, all works fine. However, if I open VSCODE at the workspace folder level the test explorer fails to find the tests in the project contained in my project's sub-folder.
you could also, as a work around, modify pathToJest to source which version of node first
// in your workspace setting
"jest.pathToJest": "PATH=/Path/to/your/Node/bin/:$PATH yarn test"
I'm having the same problem, but without the disabledWorkspaceFolder description:
Test Suites: 44 passed, 44 total
Tests: 79 passed, 79 total
Snapshots: 14 passed, 14 total
Time: 22.442s
Ran all test suites.
Starting Jest in Watch mode failed too many times and has been stopped.
see troubleshooting: https://github.com/jest-community/vscode-jest/blob/master/README.md#troubleshooting
Can anyone recommend any troubleshooting for that?
Most helpful comment
you could also, as a work around, modify
pathToJestto source which version of node first