Skip to content

Instantly share code, notes, and snippets.

@ikondrat
Created September 29, 2021 14:18
Show Gist options
  • Select an option

  • Save ikondrat/8220c8f2b35100c191af0ae94ede4e32 to your computer and use it in GitHub Desktop.

Select an option

Save ikondrat/8220c8f2b35100c191af0ae94ede4e32 to your computer and use it in GitHub Desktop.
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"name": "vscode-jest-tests",
"request": "launch",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"test",
"--env=jsdom",
"--runInBand",
"--colors=true",
"--watchAll=false"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"protocol": "inspector",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true
},
{
"type": "node",
"name": "Run test",
"request": "launch",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["test", "--color", "--u", "--runTestsByPath", "${relativeFile}"]
},
]
}
@ikondrat
Copy link
Author

put it to the .vscode folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment