mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 17:31:18 +08:00
71 lines
2.3 KiB
JSON
71 lines
2.3 KiB
JSON
|
{
|
||
|
// 使用 IntelliSense 了解相关属性。
|
||
|
// 悬停以查看现有属性的描述。
|
||
|
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
||
|
"version": "0.2.0",
|
||
|
"configurations": [
|
||
|
{
|
||
|
"type": "node",
|
||
|
"request": "launch",
|
||
|
"name": "Jest All",
|
||
|
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
||
|
"args": ["--runInBand"],
|
||
|
"sourceMaps": true,
|
||
|
"console": "integratedTerminal",
|
||
|
"internalConsoleOptions": "neverOpen",
|
||
|
"disableOptimisticBPs": true,
|
||
|
"runtimeExecutable": "/usr/local/bin/node",
|
||
|
"windows": {
|
||
|
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
|
"request": "launch",
|
||
|
"name": "Jest Current File",
|
||
|
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
||
|
"args": [
|
||
|
"--no-cache",
|
||
|
"--runInBand",
|
||
|
"${relativeFile}"
|
||
|
],
|
||
|
"sourceMaps": true,
|
||
|
"console": "integratedTerminal",
|
||
|
"internalConsoleOptions": "neverOpen",
|
||
|
"disableOptimisticBPs": true,
|
||
|
"runtimeExecutable": "/usr/local/bin/node",
|
||
|
"windows": {
|
||
|
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
|
"request": "launch",
|
||
|
"name": "Jest Current File Specified test",
|
||
|
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
||
|
"args": [
|
||
|
"--no-cache",
|
||
|
"--runInBand",
|
||
|
"${relativeFile}",
|
||
|
"-t",
|
||
|
"${input:testName}"
|
||
|
],
|
||
|
"sourceMaps": true,
|
||
|
"console": "integratedTerminal",
|
||
|
"internalConsoleOptions": "neverOpen",
|
||
|
"disableOptimisticBPs": true,
|
||
|
"runtimeExecutable": "/usr/local/bin/node",
|
||
|
"windows": {
|
||
|
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"inputs": [
|
||
|
{
|
||
|
"id": "testName",
|
||
|
"type": "promptString",
|
||
|
"default": "",
|
||
|
"description": "Run only tests with a name that matches the regex pattern."
|
||
|
}
|
||
|
]
|
||
|
}
|