Skip to content

Commit

Permalink
Add .vscode/launch.json for debugging (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
OiYouYeahYou authored Aug 4, 2021
1 parent a67133d commit 998a192
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest single run all tests",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"args": ["--verbose", "-i", "--no-cache"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Jest watch all tests",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"args": ["--verbose", "-i", "--no-cache", "--watchAll"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Jest watch current file",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": ["--verbose", "-i", "--no-cache", "--watchAll", "${fileBasename}"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
testEnvironment: 'node',
rootDir: '.',
testMatch: ['<rootDir>/tests/**/*.test.ts'],
moduleFileExtensions: ['ts', 'js'],
moduleFileExtensions: ['ts', 'js', 'pug'],
reporters: ['default', 'jest-junit'],
collectCoverage: true,
collectCoverageFrom: ['src/**/*.ts', '!src/logger.ts']
Expand Down

0 comments on commit 998a192

Please sign in to comment.