Fix vscode debugger for E2E tests (#2258)
This commit is contained in:
8
.vscode/launch.json
vendored
8
.vscode/launch.json
vendored
@@ -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
6
.vscode/tasks.json
vendored
@@ -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": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user