Created
January 9, 2020 04:48
-
-
Save shazron/9336b1729cbc271ac909cc91fc1cf4f0 to your computer and use it in GitHub Desktop.
vscode jest launch config (excludes node_modules and internal node files)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Jest All", | |
"program": "${workspaceFolder}/node_modules/.bin/jest", | |
"args": ["--runInBand"], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen", | |
"disableOptimisticBPs": true, | |
"windows": { | |
"program": "${workspaceFolder}/node_modules/jest/bin/jest", | |
}, | |
"skipFiles": [ | |
"<node_internals>/**/*.js", | |
"${workspaceRoot}/node_modules/**/*.js" | |
] | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Jest Current File", | |
"program": "${workspaceFolder}/node_modules/.bin/jest", | |
"args": [ | |
"${fileBasenameNoExtension}", | |
"--config", | |
"jest.config.js" | |
], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen", | |
"disableOptimisticBPs": true, | |
"windows": { | |
"program": "${workspaceFolder}/node_modules/jest/bin/jest", | |
}, | |
"skipFiles": [ | |
"<node_internals>/**/*.js", | |
"${workspaceRoot}/node_modules/**/*.js" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment