From de0a9fb1a620aed430e3951bed7781b281e488cf Mon Sep 17 00:00:00 2001 From: Amadeo Gallardo Date: Fri, 15 Dec 2017 18:27:26 -0300 Subject: [PATCH] Updated Debugging Tests for VSCode The launch configuration code provided is not compatible with VSCode since version 1.19. The proposed documentation change is based on the response by a VSCode team member. References: https://github.com/facebookincubator/create-react-app/issues/3602#issuecomment-352075571 https://github.com/Microsoft/vscode/issues/40293#issuecomment-352017028 --- packages/react-scripts/template/README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index c8bd3911fdc..cbb57d8cdc2 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -1572,12 +1572,9 @@ Use the following [`launch.json`](https://code.visualstudio.com/docs/editor/debu "name": "Debug CRA Tests", "type": "node", "request": "launch", - "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts", - "runtimeArgs": [ - "--inspect-brk", - "test" - ], + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts", "args": [ + "test", "--runInBand", "--no-cache", "--env=jsdom"