Skip to content

Commit

Permalink
Fix test debugging in VS Code. (#5227)
Browse files Browse the repository at this point in the history
When running node directly without the time zone 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 authored Nov 26, 2024
2 parents e9fe870 + d40c403 commit 3593a7b
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 3593a7b

Please sign in to comment.