Skip to content

Instantly share code, notes, and snippets.

@haoliangwu
Created February 7, 2018 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haoliangwu/b61c399ad3efef8f62ad0dc82f4702d8 to your computer and use it in GitHub Desktop.
Save haoliangwu/b61c399ad3efef8f62ad0dc82f4702d8 to your computer and use it in GitHub Desktop.
{
"version": "0.2.0",
"configurations": [
{
"name": "Jest", // This is the configuration name you will see in debug sidebar
"type": "node",
"request": "launch",
"port": 9229,
"address": "localhost",
"stopOnEntry": false,
"runtimeExecutable": null,
"env": {
"NODE_ENV": "production" // You can setup here any env vars you
},
"runtimeArgs": [
"--inspect-brk",
"./node_modules/.bin/jest", // Path to Jest
"--runInBand",
"--watch"
],
"cwd": "${workspaceRoot}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment