{ "version": "0.2.0", "configurations": [{ "type": "node", "request": "launch", "name": "Debug Project", // we test in `build` to make cleanup fast and easy "cwd": "${workspaceFolder}/build", // Replace this with your project root. If there are multiple, you can // automatically run the currently visible file with: "program": ${file}" "program": "${workspaceFolder}/src/cli/cli.ts", // "args": ["--no-install"], "outFiles": ["${workspaceFolder}/build/main/**/*.js"], "skipFiles": [ "/**/*.js", "${workspaceFolder}/node_modules/**/*.js" ], "preLaunchTask": "npm: build", "stopOnEntry": true, "smartStep": true, "runtimeArgs": ["--nolazy"], "env": { "TYPESCRIPT_STARTER_REPO_URL": "${workspaceFolder}" }, "console": "externalTerminal" }, { "type": "node", "request": "launch", "name": "Debug Spec", "program": "${workspaceRoot}/.vscode/debug-ts.js", "args": ["${file}"], "skipFiles": ["/**/*.js"], // Consider using `npm run watch` or `yarn watch` for faster debugging // "preLaunchTask": "npm: build", // "smartStep": true, "runtimeArgs": ["--nolazy"] }, // --- cut here --- // TODO: Simpler test debugging option. Discussion: // https://github.com/avajs/ava/issues/1505#issuecomment-370654427 // { // "type": "node", // "request": "launch", // "name": "Debug Visible Compiled Spec", // "program": "${file}", // "outFiles": ["${workspaceFolder}/build/main/**/*.js"], // "skipFiles": ["/**/*.js"], // // Consider using `npm run watch` or `yarn watch` for faster debugging // // "preLaunchTask": "npm: build", // // "stopOnEntry": true, // // "smartStep": true, // "runtimeArgs": ["--nolazy"], // "env": { // "AVA_DEBUG_MODE": "1" // } // } // CLI: { "type": "node", "request": "launch", "name": "Debug CLI Unit Tests", "program": "${workspaceFolder}/node_modules/ava/profile.js", "args": ["${workspaceFolder}/build/main/cli/tests/cli.unit.spec.js"], "skipFiles": ["/**/*.js"], // "preLaunchTask": "npm: build", // "smartStep": true, "runtimeArgs": ["--nolazy"] }, { "type": "node", "request": "launch", "name": "Debug CLI Integration Tests", "program": "${workspaceFolder}/node_modules/ava/profile.js", "args": [ "${workspaceFolder}/build/main/cli/tests/cli.integration.spec.js" ], "skipFiles": ["/**/*.js"], // "preLaunchTask": "npm: build", // "smartStep": true, "runtimeArgs": ["--nolazy"] } ] }