diff --git a/.vscode/launch.json b/.vscode/launch.json index f664872aa2..9ebbc455ca 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -18,7 +18,30 @@ }, "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", - "port": 9229 + "port": 9229, + "skipFiles": [ + "/**" + ] + }, + { + "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": [ + "/**" + ] }, { "type": "node", diff --git a/jest.config.js b/jest.config.js index ec2ac38a4b..b3d0efc356 100644 --- a/jest.config.js +++ b/jest.config.js @@ -3,4 +3,5 @@ module.exports = { testEnvironment: 'node', globalSetup: '/src/tests/globalSetup.js', globalTeardown: '/src/tests/globalTeardown.js', + testTimeout: 15000, };