Skip to content

Commit 6414f28

Browse files
papadicpojer
authored andcommitted
Update Troubleshooting.md (#4988)
Instructions for automatic launching of debugger are for Linux only. Added one more block for Windows.
1 parent 91b104f commit 6414f28

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/Troubleshooting.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,28 @@ following configuration:
9494
}
9595
```
9696

97+
or the following for Windows:
98+
99+
```json
100+
{
101+
"version": "0.2.0",
102+
"configurations": [
103+
{
104+
"name": "Debug Jest Tests",
105+
"type": "node",
106+
"request": "launch",
107+
"runtimeArgs": [
108+
"--inspect-brk",
109+
"${workspaceRoot}/node_modules/jest/bin/jest.js",
110+
"--runInBand"
111+
],
112+
"console": "integratedTerminal",
113+
"internalConsoleOptions": "neverOpen"
114+
}
115+
]
116+
}
117+
```
118+
97119
If you are using Facebook's
98120
[`create-react-app`](https://github.com/facebookincubator/create-react-app), you
99121
can debug your Jest tests with the following configuration:

0 commit comments

Comments
 (0)