Skip to content

Commit

Permalink
Merge pull request #592 from desktop/debug-tests-in-vs-code
Browse files Browse the repository at this point in the history
Add configuration to debug tests in current file
  • Loading branch information
niik authored Oct 22, 2024
2 parents 8e6c626 + 0ea64f5 commit 9c9f6ab
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 9c9f6ab

Please sign in to comment.