From b015892de6eaf5cd3cc16eaab433e7521c050a9c Mon Sep 17 00:00:00 2001 From: Cr <631807682@qq.com> Date: Fri, 12 Jun 2020 22:34:31 +0800 Subject: [PATCH] workflow: cross platform vscode jest debugging (#414) remove no longer needed proxy script --- .vscode/launch.json | 7 +++++-- scripts/jest.js | 7 ------- 2 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 scripts/jest.js diff --git a/.vscode/launch.json b/.vscode/launch.json index c4ffd0fc..b63ffc79 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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}", @@ -19,7 +19,10 @@ "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 index 676c322e..00000000 --- a/scripts/jest.js +++ /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)