Summary: Provides a much nicer devx, shows test pass / failure in the editor and error messages in line https://pxl.cl/25G0x When the extension is installed with this config it will watch all test and run what is needed, automatically updating the editor with test status It also supports debugging tests individually right in the editor see https://github.com/jest-community/vscode-jest for full docs Also Once VS code @ fb is updated to a newer base of vscode, we will get access to to the testing sidebar feature https://pxl.cl/25G0R Reviewed By: lblasa, aigoncharov Differential Revision: D37009812 fbshipit-source-id: e1918a0817d4703089b6300840fcf9564b871682
72 lines
1.8 KiB
JSON
72 lines
1.8 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Attach to Flipper Server",
|
|
"type": "node",
|
|
"request": "attach",
|
|
"port": 9229,
|
|
"sourceMaps": true,
|
|
"skipFiles": ["<node_internals>/**"]
|
|
},
|
|
{
|
|
"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"]
|
|
},
|
|
{
|
|
"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": [
|
|
{
|
|
"name": "Attach to All",
|
|
"configurations": ["Attach to Running Main", "Attach to Running Renderer"]
|
|
}
|
|
]
|
|
}
|