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",
|
"request": "launch",
|
||||||
"name": "Launch Current Jest Suite",
|
"name": "Launch Current Jest Suite",
|
||||||
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
||||||
"args": ["--runInBand", "${relativeFile}"]
|
"args": [
|
||||||
|
"--runInBand",
|
||||||
|
"${relativeFile}"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"TZ": "Pacific/Pohnpei"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "node",
|
"type": "node",
|
||||||
"cwd": "${fileDirname}",
|
"cwd": "${fileDirname}",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Launch Current Script",
|
"name": "Launch Current Script",
|
||||||
"args": ["${file}"],
|
"args": [
|
||||||
|
"${file}"
|
||||||
|
],
|
||||||
"env": {
|
"env": {
|
||||||
"TS_NODE_FILES": "true"
|
"TS_NODE_FILES": "true"
|
||||||
},
|
},
|
||||||
"protocol": "inspector",
|
"protocol": "inspector",
|
||||||
"internalConsoleOptions": "openOnSessionStart",
|
"internalConsoleOptions": "openOnSessionStart",
|
||||||
"runtimeArgs": ["--require", "ts-node/register"]
|
"runtimeArgs": [
|
||||||
|
"--require",
|
||||||
|
"ts-node/register"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"compounds": [
|
"compounds": [
|
||||||
{
|
{
|
||||||
"name": "Attach to All",
|
"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