Skip to content

Commit

Permalink
Update launch.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Sneed authored and Anthony Sneed committed Jun 22, 2019
1 parent 6b741d4 commit e8a39f5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
38 changes: 26 additions & 12 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,35 @@
"version": "0.2.0",
"configurations": [
{
"name": "Tests",
"name": "Tests - Current File",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"sourceMaps": true,
"runtimeArgs": [
"-i"
"args": [
"${fileBasenameNoExtension}",
"--config",
"jest.config.js"
],
"env": {
"NODE_ENV": "development"
},
"outFiles": [
"${workspaceRoot}/dist/**/*"
],
"cwd": "${workspaceRoot}"
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
}
},
{
"type": "node",
"request": "launch",
"name": "Test - All Files",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--runInBand"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
}
}
]
}
}
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{
"label": "test",
"type": "npm",
"script": "test",
"script": "test:watch",
"presentation": {
"reveal": "always"
},
Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
const config = {
preset: 'ts-jest',
rootDir: '.',
testEnvironment: 'node',
testMatch: [
'<rootDir>/src/**/?(*.)+(spec|test).ts?(x)',
],
Expand Down

0 comments on commit e8a39f5

Please sign in to comment.