Skip to content
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

Is there any way to make this extension run tests with runInBand parameter? #565

Closed
da1z opened this issue Mar 23, 2020 · 3 comments
Closed

Comments

@da1z
Copy link

da1z commented Mar 23, 2020

No description provided.

@connectdotz connectdotz mentioned this issue Apr 28, 2020
15 tasks
@seanpoulter seanpoulter added this to the v4.0 milestone May 2, 2020
@pmcelhaney
Copy link
Contributor

In settings.json:

 "jest.pathToJest": "./node_modules/.bin/jest --runInBand"

@sadeghhosseini
Copy link

jest.pathToJest is deprecated in new versions, and you have to set jest.jestCommandLine, in order to do that you can go to the settings panel for the extension (by searching the extension in the "search extension" in vscode and clicking on the gear icon on the extension and selecting "Extension Settings" from the opened list), and as shown in the following image you can set the value for Jest: Jest Command Line to "./node_modules/.bin/jest" --runInBand.

You can update the settings.json manually too, all you have to do is adding the following line to the settings.json

"jest.jestCommandLine": "\"./node_modules/.bin/jest\" --runInBand"

note in windows I had to wrap ./node_modules/.bin/jest in double quotes(as I have in the preceding examples), otherwise it did not work.

image

@connectdotz
Copy link
Collaborator

connectdotz commented May 30, 2022

thanks, @sadeghhosseini. This should have been closed after v4 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants