|
4 | 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
5 | 5 | "version": "0.2.0",
|
6 | 6 | "configurations": [
|
| 7 | + // @sentry/tracing - run a specific test file in watch mode |
| 8 | + // must have file in currently active tab when hitting the play button |
7 | 9 | {
|
8 | 10 | "type": "node",
|
9 | 11 | "request": "launch",
|
10 |
| - "cwd": "${workspaceFolder}/packages/node", |
11 |
| - "name": "Debug @sentry/node", |
12 |
| - "preLaunchTask": "", |
13 |
| - "program": "${workspaceRoot}/node_modules/.bin/jest", |
| 12 | + "cwd": "${workspaceFolder}/packages/tracing", |
| 13 | + "name": "Debug @sentry/tracing tests - just open file", |
| 14 | + "program": "${workspaceFolder}/node_modules/.bin/jest", |
14 | 15 | "args": [
|
| 16 | + "--watch", |
| 17 | + "--runInBand", |
15 | 18 | "--config",
|
16 |
| - "${workspaceRoot}/packages/node/package.json", |
| 19 | + "${workspaceFolder}/packages/tracing/package.json", |
| 20 | + "--coverage", |
| 21 | + "false", // coverage messes up the source maps |
| 22 | + "${relativeFile}" // remove this to run all package tests |
| 23 | + ], |
| 24 | + "disableOptimisticBPs": true, |
| 25 | + "sourceMaps": true, |
| 26 | + "smartStep": true, |
| 27 | + "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which can't read from stdin |
| 28 | + "internalConsoleOptions": "neverOpen", // since we're not using it, don't automatically switch to it |
| 29 | + }, |
| 30 | + |
| 31 | + // @sentry/node - run a specific test file in watch mode |
| 32 | + // must have file in currently active tab when hitting the play button |
| 33 | + { |
| 34 | + "type": "node", |
| 35 | + "request": "launch", |
| 36 | + "cwd": "${workspaceFolder}/packages/node", |
| 37 | + "name": "Debug @sentry/node tests - just open file", |
| 38 | + "program": "${workspaceFolder}/node_modules/.bin/jest", |
| 39 | + "args": [ |
| 40 | + "--watch", |
17 | 41 | "--runInBand",
|
18 |
| - "${relativeFile}" |
| 42 | + "--config", |
| 43 | + "${workspaceFolder}/packages/node/package.json", |
| 44 | + "--coverage", |
| 45 | + "false", // coverage messes up the source maps |
| 46 | + "${relativeFile}" // remove this to run all package tests |
19 | 47 | ],
|
| 48 | + "disableOptimisticBPs": true, |
20 | 49 | "sourceMaps": true,
|
21 | 50 | "smartStep": true,
|
22 |
| - "outFiles": ["${workspaceRoot}/packages/node/dist"] |
23 |
| - } |
| 51 | + "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which can't read from stdin |
| 52 | + "internalConsoleOptions": "neverOpen", // since we're not using it, don't automatically switch to it |
| 53 | + }, |
24 | 54 | ]
|
25 | 55 | }
|
0 commit comments