{ // Use IntelliSense to learn about possible Node.js debug attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Run Mocha tests", "program": "${workspaceRoot}/packages/build/node_modules/mocha/bin/_mocha", "runtimeArgs": ["-r", "${workspaceRoot}/packages/build/node_modules/source-map-support/register"], "cwd": "${workspaceRoot}", "autoAttachChildProcesses": true, "args": [ "--config", "${workspaceRoot}/packages/build/config/.mocharc.json", "packages/*/dist/__tests__/**/*.js", "-t", "0" ] }, { "type": "node", "request": "launch", "name": "Debug Current Test File", "program": "${workspaceRoot}/bin/mocha-current-file", "runtimeArgs": ["-r", "${workspaceRoot}/packages/build/node_modules/source-map-support/register"], "cwd": "${workspaceRoot}", "autoAttachChildProcesses": true, "args": [ "--config", "${workspaceRoot}/packages/build/config/.mocharc.json", "-t", "0", "${file}" ], // This ensures vscode won't set breakpoints until after sourcemaps // have been loaded for the file. Important when your tests are compiled // from typescript. "disableOptimisticBPs": true, }, { "type": "node", "request": "attach", "name": "Attach to Process", "port": 5858 } ] }