Files
flipper/desktop/.vscode/launch.json
Anton Nikolaev f58e5ef7c9 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
2021-06-17 07:39:43 -07:00

61 lines
1.2 KiB
JSON

{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Running Renderer",
"type": "chrome",
"request": "attach",
"port": 9222,
"webRoot": "/",
"url": "http://localhost:3000/index.dev.html"
},
{
"name": "Attach to Running Main",
"type": "node",
"request": "attach",
"port": 9229,
"sourceMaps": true
},
{
"type": "node",
"request": "launch",
"name": "Launch Current Jest Suite",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"--runInBand",
"${relativeFile}"
],
"env": {
"TZ": "Pacific/Pohnpei"
}
},
{
"type": "node",
"cwd": "${fileDirname}",
"request": "launch",
"name": "Launch Current Script",
"args": [
"${file}"
],
"env": {
"TS_NODE_FILES": "true"
},
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart",
"runtimeArgs": [
"--require",
"ts-node/register"
]
}
],
"compounds": [
{
"name": "Attach to All",
"configurations": [
"Attach to Running Main",
"Attach to Running Renderer"
]
}
]
}