Skip to content

Commit

Permalink
Fix test debugging in VS Code.
Browse files Browse the repository at this point in the history
Without these environment variables, choosing "Run -> Start Debugging"
on a test file in VS Code would run into the assertion added by #5167:

```
Jest must be run from `yarn test`
```
  • Loading branch information
mstange committed Nov 26, 2024
1 parent e9fe870 commit d40c403
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
{
"name": "Run Jest",
"type": "node",
"runtimeExecutable": "yarn",
"runtimeArgs": ["test"],
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": ["--runInBand", "${file}"],
"cwd": "${workspaceFolder}",
Expand Down

0 comments on commit d40c403

Please sign in to comment.