Skip to content

Instantly share code, notes, and snippets.

@LissetteIbnz
Last active March 4, 2019 09:58
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 LissetteIbnz/0206e3b36f148fd3a597dd3dcac50206 to your computer and use it in GitHub Desktop.
Save LissetteIbnz/0206e3b36f148fd3a597dd3dcac50206 to your computer and use it in GitHub Desktop.
JEST: Configure launch.json File for your test framework
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest All",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--runInBand", "--config", "jest.config.js"],
"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}", "--config", "jest.config.js"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment