]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: cross platform vscode jest debugging (#414)
authorCr <631807682@qq.com>
Fri, 12 Jun 2020 14:34:31 +0000 (22:34 +0800)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 14:34:31 +0000 (10:34 -0400)
remove no longer needed proxy script

.vscode/launch.json
scripts/jest.js [deleted file]

index c4ffd0fc5c3b907c8bb5a1140a022742a38555bb..b63ffc79b80e819ab0dd285e3b370c4295162937 100644 (file)
@@ -8,7 +8,7 @@
       "name": "Jest",
       "type": "node",
       "request": "launch",
-      "program": "${workspaceFolder}/scripts/jest.js",
+      "program": "${workspaceFolder}/node_modules/.bin/jest",
       "stopOnEntry": false,
       "args": ["${fileBasename}", "--runInBand", "--detectOpenHandles"],
       "cwd": "${workspaceFolder}",
         "NODE_ENV": "development"
       },
       "console": "integratedTerminal",
-      "sourceMaps": true
+      "sourceMaps": true,
+      "windows": {
+        "program": "${workspaceFolder}/node_modules/jest/bin/jest",
+      }
     }
   ]
 }
diff --git a/scripts/jest.js b/scripts/jest.js
deleted file mode 100644 (file)
index 676c322..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * This file is the entry for debug single test file in vscode
- *
- * Not using node_modules/.bin/jest due to cross platform issues, see
- * https://github.com/microsoft/vscode-recipes/issues/107
- */
-require('jest').run(process.argv)