From 6414f2893acb7247518320eb0fc6dada468cd16e Mon Sep 17 00:00:00 2001 From: Dimitris Papadi Date: Thu, 30 Nov 2017 12:40:19 +0100 Subject: [PATCH] Update Troubleshooting.md (#4988) 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: