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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ac9ef7620a
commit
f58e5ef7c9
22
desktop/.vscode/launch.json
vendored
22
desktop/.vscode/launch.json
vendored
@@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user