From ed5c48c81b2139b4414810e1efe917e04c96ee8d Mon Sep 17 00:00:00 2001
From: Amadeo Gallardo <amadeogallardo@gmail.com>
Date: Mon, 18 Dec 2017 17:36:32 -0300
Subject: [PATCH] Updated Debugging Tests for VSCode (#3605)

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 c8bd3911f..cbb57d8cd 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"
-- 
GitLab