Added example test launchers for VS Code

refs 97584cf0c4

- We now track launch.json file in source control and it's often useful to be able to debug tests either for separate packages or e2e types of tests inside of Ghost core
- These configurations should be useful "templates" for custom launchers one might need when working on specific part of the code
This commit is contained in:
Naz 2023-05-23 12:57:43 +07:00
parent 282d385484
commit ec56572764
No known key found for this signature in database

48
.vscode/launch.json vendored
View File

@ -33,6 +33,52 @@
"autoAttachChildProcesses": true,
"outputCapture": "std",
"console": "integratedTerminal",
},
{
"args": [
"--require",
"./test/utils/overrides.js",
"-u",
"bdd",
"--timeout",
"999999",
"--colors",
"./test/e2e-api/**/*.test.js"
],
"cwd": "${workspaceFolder}/ghost/core",
"internalConsoleOptions": "openOnSessionStart",
"name": "E2E API Tests",
"program": "./node_modules/.bin/_mocha",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"env": {
"NODE_ENV": "testing-mysql"
},
"type": "node"
},
{
"args": [
"-u",
"bdd",
"--timeout",
"999999",
"--colors",
"./test/**/*.test.js"
],
"cwd": "${workspaceFolder}/ghost/email-service/",
"internalConsoleOptions": "openOnSessionStart",
"name": "Email Service Unit Tests",
"program": "./node_modules/.bin/_mocha",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"env": {
"NODE_ENV": "testing-mysql"
},
"type": "node"
}
]
}
}