Skip to content

Instantly share code, notes, and snippets.

@arelra
Created January 5, 2022 17:23
Show Gist options
  • Save arelra/c15ce8e84cb9a3f239e0fb02b7601e8c to your computer and use it in GitHub Desktop.
Save arelra/c15ce8e84cb9a3f239e0fb02b7601e8c to your computer and use it in GitHub Desktop.
VSCode launch.json for Jest using package.json configuration
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest watch current file",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"${fileBasename}",
"--verbose",
"-i",
"--no-cache",
"--watchAll"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment