Skip to content

Instantly share code, notes, and snippets.

@elias551
Last active June 19, 2018 11:12
Show Gist options
  • Save elias551/5fbe8ae0cbb2cf955e727707385d3f70 to your computer and use it in GitHub Desktop.
Save elias551/5fbe8ae0cbb2cf955e727707385d3f70 to your computer and use it in GitHub Desktop.
Create-React-App typescript - lauch.json for VS Code with jest tests debug
{
"version": "0.2.0",
"configurations": [
{
"name": "Chrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000",
"webRoot": "${workspaceRoot}/src"
},
{
"type": "node",
"request": "launch",
"name": "Jest Tests",
"program":
"${workspaceRoot}/node_modules/react-scripts-ts/scripts/test.js",
"args": ["${file}", "--runInBand", "--env=jsdom"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment