diff --git a/desktop/.vscode/launch.json b/desktop/.vscode/launch.json index 9a569efdc..ce0914950 100644 --- a/desktop/.vscode/launch.json +++ b/desktop/.vscode/launch.json @@ -46,6 +46,20 @@ "protocol": "inspector", "internalConsoleOptions": "openOnSessionStart", "runtimeArgs": ["--require", "ts-node/register"] + }, + { + "type": "node", + "name": "vscode-jest-tests", + "request": "launch", + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen", + "disableOptimisticBPs": true, + "program": "${workspaceFolder}/node_modules/.bin/jest", + "cwd": "${workspaceFolder}", + "args": ["--config", "jest.config.js", "--runInBand", "--watchAll=false"], + "env": { + "TZ": "Pacific/Pohnpei" + } } ], "compounds": [ diff --git a/desktop/.vscode/settings.json b/desktop/.vscode/settings.json index 3bc74cf41..026519bec 100644 --- a/desktop/.vscode/settings.json +++ b/desktop/.vscode/settings.json @@ -32,5 +32,10 @@ "jest.runAllTestsFirst": false, "jest.pathToConfig": "jest.config.js", "jest.pathToJest": "node_modules/.bin/jest", - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", + "jest.jestCommandLine": "export TZ=Pacific/Pohnpei; node_modules/.bin/jest --config jest.config.js", + "jest.autoRun": { + "watch": true, + "onStartup": ["all-tests"] + } }