Skip to content

Commit

Permalink
Feat: Add Jest tests to VSCode launch.json
Browse files Browse the repository at this point in the history
Allows debugging the tests through the VSCode debugger. It was already
possible through the Jest extension.
  • Loading branch information
deribaucourt committed Oct 20, 2023
1 parent 312f695 commit dd5cb91
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@
"${workspaceRoot}/server/out/**/*.js"
],
"preLaunchTask": "watch:server"
},
{
"name": "Jest tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/jest/bin/jest",
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/*/out/**/*.js"
],
"preLaunchTask": "compile",
"console": "integratedTerminal"

}
],
"compounds": [
Expand Down

0 comments on commit dd5cb91

Please sign in to comment.