Fix vscode debugger for E2E tests (#2258)
This commit is contained in:
parent
c3493b09ff
commit
90123896b8
8
.vscode/launch.json
vendored
8
.vscode/launch.json
vendored
|
@ -43,8 +43,8 @@
|
|||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Mocha Tests",
|
||||
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
|
||||
"name": "E2E Tests",
|
||||
"program": "${workspaceRoot}/node_modules/electron-mocha/bin/electron-mocha",
|
||||
"args": [
|
||||
"-r",
|
||||
"@babel/register",
|
||||
|
@ -52,10 +52,10 @@
|
|||
"--timeout",
|
||||
"999999",
|
||||
"--colors",
|
||||
"${workspaceRoot}/e2e/specs"
|
||||
"${workspaceRoot}/dist/tests/e2e_bundle.js"
|
||||
],
|
||||
"internalConsoleOptions": "openOnSessionStart",
|
||||
"preLaunchTask": "Build sources"
|
||||
"preLaunchTask": "prepare-e2e"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
6
.vscode/tasks.json
vendored
6
.vscode/tasks.json
vendored
|
@ -8,6 +8,12 @@
|
|||
"type": "npm",
|
||||
"script": "build",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "prepare-e2e",
|
||||
"type": "shell",
|
||||
"command": "npm run build; npm run build-robotjs; npm run test:e2e:build",
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue