Skip to content

Commit

Permalink
Update Troubleshooting.md (#4988)
Browse files Browse the repository at this point in the history
Instructions for automatic launching of debugger are for Linux only. Added one more block for Windows.
  • Loading branch information
papadi authored and cpojer committed Nov 30, 2017
1 parent 91b104f commit 6414f28
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,28 @@ following configuration:
}
```

or the following for Windows:

```json
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Jest Tests",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--inspect-brk",
"${workspaceRoot}/node_modules/jest/bin/jest.js",
"--runInBand"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
```

If you are using Facebook's
[`create-react-app`](https://github.com/facebookincubator/create-react-app), you
can debug your Jest tests with the following configuration:
Expand Down

0 comments on commit 6414f28

Please sign in to comment.