Add jest debug current file and adjust Jest timeout
This commit is contained in:
25
.vscode/launch.json
vendored
25
.vscode/launch.json
vendored
@@ -18,7 +18,30 @@
|
|||||||
},
|
},
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
"internalConsoleOptions": "neverOpen",
|
"internalConsoleOptions": "neverOpen",
|
||||||
"port": 9229
|
"port": 9229,
|
||||||
|
"skipFiles": [
|
||||||
|
"<node_internals>/**"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Debug Jest Test - Current File",
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"runtimeArgs": [
|
||||||
|
"--inspect-brk",
|
||||||
|
"${workspaceRoot}/node_modules/.bin/jest",
|
||||||
|
"${fileBasename}",
|
||||||
|
"--runInBand"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"PAYLOAD_CONFIG_PATH": "demo/payload.config.js"
|
||||||
|
},
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"internalConsoleOptions": "neverOpen",
|
||||||
|
"port": 9229,
|
||||||
|
"skipFiles": [
|
||||||
|
"<node_internals>/**"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "node",
|
"type": "node",
|
||||||
|
|||||||
@@ -3,4 +3,5 @@ module.exports = {
|
|||||||
testEnvironment: 'node',
|
testEnvironment: 'node',
|
||||||
globalSetup: '<rootDir>/src/tests/globalSetup.js',
|
globalSetup: '<rootDir>/src/tests/globalSetup.js',
|
||||||
globalTeardown: '<rootDir>/src/tests/globalTeardown.js',
|
globalTeardown: '<rootDir>/src/tests/globalTeardown.js',
|
||||||
|
testTimeout: 15000,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user