Last active
August 10, 2021 11:38
-
-
Save johnw86/fea670dd27ccc89cf2ffc0725056bfa6 to your computer and use it in GitHub Desktop.
Jest test runner config. VS code
This file contains 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", | |
} | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Jest Current File", | |
"program": "${workspaceFolder}/node_modules/.bin/jest", | |
"args": ["${relativeFile}", "--verbose", "--no-cache"], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen", | |
"disableOptimisticBPs": true, | |
"windows": { | |
"program": "${workspaceFolder}/node_modules/jest/bin/jest" | |
} | |
} | |
] | |
} |
yarn test "c:/fullpath/hello.test.jsx" -t "ModalFactory"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update test snapshot
yarn jest "src\PATH\index.test.jsx" -u