Skip to content

Commit

Permalink
Add configuration to debug tests in current file
Browse files Browse the repository at this point in the history
  • Loading branch information
niik committed Oct 21, 2024
1 parent 0cad3e4 commit 0ea64f5
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,13 @@
{
"type": "node",
"request": "launch",
"name": "Jest Fast Tests",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--silent", "--config", "${workspaceFolder}/jest.fast.config.js"],
"name": "Debug current test file",
"args": ["--import", "tsx", "--test", "${relativeFile}"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"env": {
"LOCAL_GIT_DIRECTORY": "./git/"
},
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Jest Slow Tests",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--silent", "--config", "${workspaceFolder}/jest.slow.config.js"],
"console": "integratedTerminal",
"env": {
"LOCAL_GIT_DIRECTORY": "./git/"
},
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Jest External Tests",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--silent", "--config", "${workspaceFolder}/jest.external.config.js"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
"LOCAL_GIT_DIRECTORY": "${workspaceFolder}/git"
}
}
]
}

0 comments on commit 0ea64f5

Please sign in to comment.