From f58e5ef7c9ab5a0f6c698fb2dda6234d16dc8d49 Mon Sep 17 00:00:00 2001 From: Anton Nikolaev Date: Thu, 17 Jun 2021 07:38:51 -0700 Subject: [PATCH] Updated launch.json to pass TZ=Pacific/Pohnpei on debugging jest tests in VSCode Summary: Running jests tests now requires TZ to be set, so updated launch.json to pass it when debugging is started in VSCode. Reviewed By: mweststrate Differential Revision: D29162031 fbshipit-source-id: 7e767563dd2545f79603ef6a203601056f47414f --- desktop/.vscode/launch.json | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/desktop/.vscode/launch.json b/desktop/.vscode/launch.json index d7890c324..1e757c7b1 100644 --- a/desktop/.vscode/launch.json +++ b/desktop/.vscode/launch.json @@ -21,26 +21,40 @@ "request": "launch", "name": "Launch Current Jest Suite", "program": "${workspaceFolder}/node_modules/.bin/jest", - "args": ["--runInBand", "${relativeFile}"] + "args": [ + "--runInBand", + "${relativeFile}" + ], + "env": { + "TZ": "Pacific/Pohnpei" + } }, { "type": "node", "cwd": "${fileDirname}", "request": "launch", "name": "Launch Current Script", - "args": ["${file}"], + "args": [ + "${file}" + ], "env": { "TS_NODE_FILES": "true" }, "protocol": "inspector", "internalConsoleOptions": "openOnSessionStart", - "runtimeArgs": ["--require", "ts-node/register"] + "runtimeArgs": [ + "--require", + "ts-node/register" + ] } ], "compounds": [ { "name": "Attach to All", - "configurations": ["Attach to Running Main", "Attach to Running Renderer"] + "configurations": [ + "Attach to Running Main", + "Attach to Running Renderer" + ] } ] }