Skip to content

Instantly share code, notes, and snippets.

@RickCarlino
Created May 20, 2019 18:29
Show Gist options
  • Save RickCarlino/5448b1e167a4e16c0ecafe4246b372e4 to your computer and use it in GitHub Desktop.
Save RickCarlino/5448b1e167a4e16c0ecafe4246b372e4 to your computer and use it in GitHub Desktop.
Run Jest tests in VSCode
{
"version": "0.2.0",
"configurations": [
{
"name": "Tests",
"type": "node",
"request": "launch",
"program": "/usr/bin/jest",
"stopOnEntry": false,
"args": [
"--runInBand",
"--",
"${file}"
],
"cwd": "${workspaceRoot}",
"preLaunchTask": null,
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"console": "integratedTerminal",
"sourceMaps": true,
"outFiles": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment