更新项目配置文件

pull/249/MERGE
ChenX 6 years ago
parent c78ce8508e
commit 7af610cf81

@ -2,20 +2,20 @@
"version": "0.2.0",
"configurations": [
{
"name": "Chrome调试",
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:7778",
"webRoot": "${workspaceRoot}",
"webRoot": "${workspaceFolder}",
"skipFiles": [
"*.js"
]
},
//Ref: https://github.com/Microsoft/vscode-recipes/blob/master/debugging-jest-tests/.vscode/launch.json
{
"name": "Jest 所有文件",
"type": "node",
"request": "launch",
"name": "Jest All",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"--runInBand"
@ -23,13 +23,13 @@
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"skipFiles": [
"${workspaceRoot}/node_modules/**/*.js"
"${workspaceFolder}/node_modules/**/*.js"
]
},
{
"name": "Jest 当前文件",
"type": "node",
"request": "launch",
"name": "Jest Current File",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"${relativeFile}"
@ -37,32 +37,21 @@
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"skipFiles": [
"${workspaceRoot}/node_modules/**/*.js"
"${workspaceFolder}/node_modules/**/*.js"
]
},
{
"type": "node",
"request": "launch",
"name": "vscode-jest-tests",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"skipFiles": [
"${workspaceRoot}/node_modules/**/*.js"
]
},
{
"name": "Current TS File",
"name": "运行 当前TS文件",
"type": "node",
"request": "launch",
"args": [
"${relativeFile}"
"${file}"
],
"runtimeArgs": [
"-r",
"ts-node/register"
],
"cwd": "${workspaceRoot}",
"cwd": "${workspaceFolder}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
}

@ -89,7 +89,7 @@
"transform": {
".(ts|tsx)": "ts-jest"
},
"testRegex": "(/__test__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"testRegex": "/__test__/.*\\.(test|spec)\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",

Loading…
Cancel
Save