Fix vscode debugger for E2E tests (#2258)

This commit is contained in:
Tasos Boulis
2022-09-16 22:23:21 +03:00
committed by GitHub
parent c3493b09ff
commit 90123896b8
2 changed files with 10 additions and 4 deletions

8
.vscode/launch.json vendored
View File

@@ -43,8 +43,8 @@
{ {
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"name": "Mocha Tests", "name": "E2E Tests",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", "program": "${workspaceRoot}/node_modules/electron-mocha/bin/electron-mocha",
"args": [ "args": [
"-r", "-r",
"@babel/register", "@babel/register",
@@ -52,10 +52,10 @@
"--timeout", "--timeout",
"999999", "999999",
"--colors", "--colors",
"${workspaceRoot}/e2e/specs" "${workspaceRoot}/dist/tests/e2e_bundle.js"
], ],
"internalConsoleOptions": "openOnSessionStart", "internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "Build sources" "preLaunchTask": "prepare-e2e"
} }
] ]
} }

6
.vscode/tasks.json vendored
View File

@@ -8,6 +8,12 @@
"type": "npm", "type": "npm",
"script": "build", "script": "build",
"problemMatcher": [] "problemMatcher": []
},
{
"label": "prepare-e2e",
"type": "shell",
"command": "npm run build; npm run build-robotjs; npm run test:e2e:build",
"problemMatcher": []
} }
] ]
} }