From 7a02c9c814e9b7d586cfb8c5bdbc47b52f475f79 Mon Sep 17 00:00:00 2001 From: why <1224125412@qq.com> Date: Sun, 27 Dec 2020 20:11:26 +0800 Subject: [PATCH] feat: make jest debug in vscode available --- .vscode/launch.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..13bc8c82e --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,28 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Jest", + "type": "node", + "request": "launch", + "program": "${workspaceFolder}/node_modules/.bin/jest", + "stopOnEntry": false, + "args": ["${fileBasename}", "--runInBand", "--detectOpenHandles"], + "cwd": "${workspaceFolder}", + "preLaunchTask": null, + "runtimeExecutable": null, + "runtimeArgs": ["--nolazy"], + "env": { + "NODE_ENV": "development" + }, + "console": "integratedTerminal", + "sourceMaps": true, + "windows": { + "program": "${workspaceFolder}/node_modules/jest/bin/jest", + } + } + ] +}