Files
pybricks-code/.vscode/launch.json
T
David Lechner fca7d0f253 vscode: debug tests through craco
Changing react-scripts to craco in the debug config was missed in 2342023.
2022-03-02 15:37:41 -06:00

31 lines
1.0 KiB
JSON

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome",
"request": "launch",
"type": "pwa-chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"linux": {
"runtimeExecutable": "/usr/bin/chromium-browser"
}
},
{
"name": "Debug Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/craco",
"env": { "CI": "true" },
"args": ["test", "--runInBand", "--no-cache", "--env=./test/env.js"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}