-
Notifications
You must be signed in to change notification settings - Fork 294
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
Running "Jest: Setup Extension" doesn't work #827
Comments
hmm... this is strange, did you see "Jest" in the status bar? If not, please check out the The current workspace support is based on vscode multi-root project. It would be nice to support native yarn or jest workspace/projects settings one day, but at least for now, you can easily use mutltiroot to work around it. |
I don't see "Jest" in the status bar. The troubleshooting section doesn't help me figure out the problem. This comment originally led me to try the wizard, but it seems I'm stuck in a catch-22 situation. I tried setting
I'm not sure if this could work with yarn workspaces – lots of our config lives at the root level of the monorepo, e.g. |
will you be able to create a sample repo to help us investigate further? |
@connectdotz here it is: https://github.com/the21st/yarn-2-workspaces-monorepo-example Running |
@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. |
I'm getting this message:
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 PnPPrerequisite
npm run test
ornode_modules/.bin/jest
)yarn run jest ...
when inside a specific package oryarn workspace <package> run ...
when in repo rootSteps 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
The text was updated successfully, but these errors were encountered: