Skip to content

Instantly share code, notes, and snippets.

@johnw86
Last active August 10, 2021 11:38
Show Gist options
  • Save johnw86/fea670dd27ccc89cf2ffc0725056bfa6 to your computer and use it in GitHub Desktop.
Save johnw86/fea670dd27ccc89cf2ffc0725056bfa6 to your computer and use it in GitHub Desktop.
Jest test runner config. VS code
{
"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"
}
}
]
}
@johnw86
Copy link
Author

johnw86 commented Aug 10, 2021

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