mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
ec56572764
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
85 lines
2.5 KiB
JSON
85 lines
2.5 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Full Dev",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"program": "${workspaceFolder}/.github/dev.js",
|
|
"args": [
|
|
"--all"
|
|
],
|
|
"autoAttachChildProcesses": true,
|
|
"outputCapture": "std",
|
|
"console": "integratedTerminal",
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Full Offline Dev",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"program": "${workspaceFolder}/.github/dev.js",
|
|
"args": [
|
|
"--all --offline"
|
|
],
|
|
"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"
|
|
}
|
|
]
|
|
}
|