mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
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:
parent
282d385484
commit
ec56572764
48
.vscode/launch.json
vendored
48
.vscode/launch.json
vendored
@ -33,6 +33,52 @@
|
|||||||
"autoAttachChildProcesses": true,
|
"autoAttachChildProcesses": true,
|
||||||
"outputCapture": "std",
|
"outputCapture": "std",
|
||||||
"console": "integratedTerminal",
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user