|
|
@@ -1,7 +1,6 @@
|
|
|
{
|
|
|
- // 使用 IntelliSense 了解相关属性。
|
|
|
- // 悬停以查看现有属性的描述。
|
|
|
- // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
|
|
+ // Hover to view descriptions of existing attributes.
|
|
|
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
|
"version": "0.2.0",
|
|
|
"configurations": [
|
|
|
{
|
|
|
@@ -10,18 +9,15 @@
|
|
|
"request": "launch",
|
|
|
"runtimeArgs": [
|
|
|
"--inspect-brk",
|
|
|
- "${workspaceRoot}/node_modules/.bin/jest",
|
|
|
- "${workspaceRoot}/packages/semi-ui/select/", // 需要调试哪个组件,替换文件夹路径即可
|
|
|
+ "${workspaceRoot}/node_modules/jest/bin/jest",
|
|
|
+ "packages/semi-ui/select/", // Replace with the folder path of the component you want to debug
|
|
|
"--runInBand",
|
|
|
- // "--coverage",
|
|
|
"--silent" // ignore warning such as componentWillReceiveProps will be abondon...
|
|
|
],
|
|
|
"env": {
|
|
|
"NODE_ENV": "test",
|
|
|
- // "type": "story" // 调试snapshot快照的时候用这个
|
|
|
- "type": "unit" // 调试unitTest的时候用这个
|
|
|
+ "type": "unit"
|
|
|
},
|
|
|
- "runtimeExecutable": "/Users/bytedance/.nvm/versions/node/v16.17.1/bin/node",
|
|
|
"console": "integratedTerminal",
|
|
|
"internalConsoleOptions": "neverOpen",
|
|
|
"port": 9229
|
|
|
@@ -33,7 +29,7 @@
|
|
|
"request": "launch",
|
|
|
"runtimeArgs": [
|
|
|
"--inspect-brk",
|
|
|
- "${workspaceRoot}/node_modules/.bin/jest",
|
|
|
+ "${workspaceRoot}/node_modules/jest/bin/jest",
|
|
|
"--runInBand",
|
|
|
"--silent" // ignore warning such as componentWillReceiveProps will be abondon...
|
|
|
],
|