I want to run the Jest tests in band, because otherwise they will cause errors.
But I have no clue how to solve that problem. It works everything fine when I run the tests with the command line.
In new version of vscode jest.pathToJest
is deprecated, instead you should set jest.jestCommandLine
. You can either use the settings panel to set the value for the jestCommandLine
. like this:
Or you can manually update the settings.json
like this:
"jest.jestCommandLine": "\"./node_modules/.bin/jest\" --runInBand"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.