Vscode-jest: Configuration 'vscode-jest-tests' is missing in 'launch.json'.

Created on 24 Jul 2020  路  3Comments  路  Source: jest-community/vscode-jest

Not a bug, I just need to know how to get my vscode-jest-tests configuration back.

Most helpful comment

If you open launch.json and click on "Add configuration..." button there is a "Jest: Default jest configuration" snippets.
It is defined in the package.json

All 3 comments

If you open launch.json and click on "Add configuration..." button there is a "Jest: Default jest configuration" snippets.
It is defined in the package.json

Do I need a launch.json if I have a code-workspace file with key launch?

@tik9 looks like it is true that we only look at the workspace folder's .vscode/launch.json. But I think you are right that we should look at the code-workspace file if no local one can be found... Feel free to file an issue.

BTW, with v4.0.0-alpha.5, it is a lot easier to create the debug config with Setup Wizard, feel free to give it a try...

Was this page helpful?
0 / 5 - 0 ratings