|
| 1 | +{ |
| 2 | + "version": "0.2.0", |
| 3 | + "configurations": [ |
| 4 | + { |
| 5 | + "name": "Debug SST", |
| 6 | + "type": "node", |
| 7 | + "request": "launch", |
| 8 | + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/sst", |
| 9 | + "runtimeArgs": ["dev", "--increase-timeout"], |
| 10 | + "console": "integratedTerminal", |
| 11 | + "skipFiles": ["<node_internals>/**"], |
| 12 | + // sourceMapRenames helps with the loading spinner when debugging and viewing local variables |
| 13 | + "sourceMapRenames": false, |
| 14 | + "env": { |
| 15 | + "AWS_PROFILE": "flo-ct-flo360" |
| 16 | + } |
| 17 | + }, |
| 18 | + { |
| 19 | + "name": "Debug Tests - Unit", |
| 20 | + "type": "node", |
| 21 | + "request": "launch", |
| 22 | + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/sst", |
| 23 | + "runtimeArgs": ["bind", "yarn", "\"jest\"", "\"--watch\"", "\"--config\"", "\"./jest.unit.config.cjs\"", "\"${input:scopeTestsFileName}\""], |
| 24 | + "console": "integratedTerminal", |
| 25 | + "skipFiles": ["<node_internals>/**"], |
| 26 | + "env": { |
| 27 | + "AWS_PROFILE": "flo-ct-flo360" |
| 28 | + }, |
| 29 | + }, |
| 30 | + { |
| 31 | + "name": "Debug Tests - E2E", |
| 32 | + "type": "node", |
| 33 | + "request": "launch", |
| 34 | + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/sst", |
| 35 | + "runtimeArgs": ["bind", "yarn", "\"vitest\"", "\"--config\"", "\"./vitest.e2e.config.ts\"", "\"${input:scopeTestsFileName}\""], |
| 36 | + "console": "integratedTerminal", |
| 37 | + "skipFiles": ["<node_internals>/**"], |
| 38 | + "env": { |
| 39 | + "AWS_PROFILE": "flo-ct-flo360" |
| 40 | + }, |
| 41 | + }, |
| 42 | + ], |
| 43 | + "inputs": [ |
| 44 | + { |
| 45 | + "id": "scopeTestsFileName", |
| 46 | + "type": "promptString", |
| 47 | + "description": "Partial file name to scope test debugging to. ex. arena. Leave blank to run all tests.", |
| 48 | + } |
| 49 | + ] |
| 50 | +} |
0 commit comments