diff --git a/.vscode/launch.json b/.vscode/launch.json index c4ffd0fc5c3..b63ffc79b80 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 676c322ee0e..00000000000 --- 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)