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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

8
.vscode/launch.json vendored
View file

@ -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
View file

@ -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": []
}
]
}