From ca2f20058c9ed4880e4e599a098424f7044dab25 Mon Sep 17 00:00:00 2001 From: Dimitris Papadi Date: Thu, 30 Nov 2017 12:24:58 +0100 Subject: [PATCH] Update Troubleshooting.md Instructions for automatic launching of debugger are for Linux only. Added one more block for Windows. --- docs/Troubleshooting.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/Troubleshooting.md b/docs/Troubleshooting.md index e37635fd565a..d8b439ce76d1 100644 --- a/docs/Troubleshooting.md +++ b/docs/Troubleshooting.md @@ -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: