Skip to content

Instantly share code, notes, and snippets.

@janbaer
Last active November 15, 2020 08:38
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 janbaer/2edf48f25f7b7002e3b3ff1fe4de7dcd to your computer and use it in GitHub Desktop.
Save janbaer/2edf48f25f7b7002e3b3ff1fe4de7dcd to your computer and use it in GitHub Desktop.
Debug Jest Tests with VSCode
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest Current File",
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
"cwd": "${workspaceFolder}",
"args": [
"--config=${workspaceFolder}/jest.config.json",
"--runInBand",
"--no-cache",
"--testPathPattern=${fileBasenameNoExtension}"
],
"console": "internalConsole",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment