Running "Jest: Setup Extension" doesn't work
See original GitHub issueI’m getting this message:
Jest: Setup Extension (Beta)’ resulted in an error (command ‘io.orta.jest.setup-extension’ not found)
Environment
vscode-jest version
: v4.2.1node -v
: v14.15.5npm -v
oryarn --version
: yarn 2.4.1npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): I’m using yarn PnP- your vscode-jest settings if customized:
- jest.jestCommandLine? N/A
- jest.autoRun? N/A
- anything else that you think might be relevant? N/A
- Operating system: MacOS 12.1
Prerequisite
- are you able to run jest test from the command line? yes
- how do you run your tests from the command line? (for example:
npm run test
ornode_modules/.bin/jest
)yarn run jest ...
when inside a specific package oryarn workspace <package> run ...
when in repo root
Steps to Reproduce
I’m in a yarn2 PnP monorepo with multiple packages.
Relevant Debug Info
Expected Behavior
The setup wizard is run
Actual Behavior
An error dialog appears
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:6
Top Results From Across the Web
vscode jest extension doesn't work properly - Stack Overflow
I had been running tests using WSL2 with no issues (without the extension), but encountered "jest command not found" with the extension. After...
Read more >Troubleshooting - Jest
Troubleshooting. Uh oh, something went wrong? Use this guide to resolve issues with Jest. Tests are Failing and You Don't Know Why.
Read more >vscode-jest - Visual Studio Marketplace
Extension for Visual Studio Code - Use Facebook's Jest With Pleasure. ... Simply open Jest - Visual Studio Marketplace and click "Install".
Read more >2.2.1.10 - VSCode Jest Extension - LearnHowToProgram.com
As long as you can write tests, run them with Jest in the terminal using $ npm test , and debug manually using...
Read more >VS-Code & Jest Integration - A Developer - Medium
One can very easily get the Jest Run It in VS code via the extensions, go to the extensions explorer, find and install...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@the21st thanks for the repo. I was able to reproduce the error, however as I mentioned earlier, the way this extension supports monorepo is via vscode multiroom workspaces, which is pretty easy to do. Once converted, the sample repo worked perfectly.
I have created a PR(the21st/yarn-2-workspaces-monorepo-example#1) against your sample for such conversion (just one file actually). Let me know if you still have any problems…
This should be addressed by the following v5 features:
Close this issue but feel free to reopen it if you have other issues.