|
5 | 5 | "version": "0.2.0",
|
6 | 6 | // TODO: these are all alike save the package, so figure out how to make that variable
|
7 | 7 | "configurations": [
|
8 |
| - // @sentry/tracing - run a specific test file in watch mode |
| 8 | + |
| 9 | + // @sentry/core - run a specific test file in watch mode |
9 | 10 | // must have file in currently active tab when hitting the play button
|
10 | 11 | {
|
11 | 12 | "type": "node",
|
12 | 13 | "request": "launch",
|
13 |
| - "cwd": "${workspaceFolder}/packages/tracing", |
14 |
| - "name": "Debug @sentry/tracing tests - just open file", |
| 14 | + "cwd": "${workspaceFolder}/packages/core", |
| 15 | + "name": "Debug @sentry/core tests - just open file", |
15 | 16 | "program": "${workspaceFolder}/node_modules/.bin/jest",
|
16 | 17 | "args": [
|
17 | 18 | "--watch",
|
18 | 19 | "--runInBand",
|
19 | 20 | "--config",
|
20 |
| - "${workspaceFolder}/packages/tracing/package.json", |
| 21 | + "${workspaceFolder}/packages/core/package.json", |
| 22 | + "--coverage", |
| 23 | + "false", // coverage messes up the source maps |
| 24 | + "${relativeFile}" // remove this to run all package tests |
| 25 | + ], |
| 26 | + "disableOptimisticBPs": true, |
| 27 | + "sourceMaps": true, |
| 28 | + "smartStep": true, |
| 29 | + "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which prints the test output or console logs (depending on "outputCapture" option here), but not both |
| 30 | + "internalConsoleOptions": "neverOpen", // since we're not using it, don't automatically switch to it |
| 31 | + }, |
| 32 | + |
| 33 | + // @sentry/nextjs - run a specific test file in watch mode |
| 34 | + // must have file in currently active tab when hitting the play button |
| 35 | + { |
| 36 | + "type": "node", |
| 37 | + "request": "launch", |
| 38 | + "cwd": "${workspaceFolder}/packages/nextjs", |
| 39 | + "name": "Debug @sentry/nextjs tests - just open file", |
| 40 | + "program": "${workspaceFolder}/node_modules/.bin/jest", |
| 41 | + "args": [ |
| 42 | + "--watch", |
| 43 | + "--runInBand", |
| 44 | + "--config", |
| 45 | + "${workspaceFolder}/packages/nextjs/package.json", |
21 | 46 | "--coverage",
|
22 | 47 | "false", // coverage messes up the source maps
|
23 | 48 | "${relativeFile}" // remove this to run all package tests
|
24 | 49 | ],
|
25 | 50 | "disableOptimisticBPs": true,
|
26 | 51 | "sourceMaps": true,
|
27 | 52 | "smartStep": true,
|
28 |
| - "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which can't read from stdin |
| 53 | + "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which prints the test output or console logs (depending on "outputCapture" option here), but not both |
29 | 54 | "internalConsoleOptions": "neverOpen", // since we're not using it, don't automatically switch to it
|
30 | 55 | },
|
31 | 56 |
|
|
49 | 74 | "disableOptimisticBPs": true,
|
50 | 75 | "sourceMaps": true,
|
51 | 76 | "smartStep": true,
|
52 |
| - "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which can't read from stdin |
| 77 | + "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which prints the test output or console logs (depending on "outputCapture" option here), but not both |
53 | 78 | "internalConsoleOptions": "neverOpen", // since we're not using it, don't automatically switch to it
|
54 | 79 | },
|
55 | 80 |
|
56 |
| - // @sentry/core - run a specific test file in watch mode |
| 81 | + // @sentry/tracing - run a specific test file in watch mode |
57 | 82 | // must have file in currently active tab when hitting the play button
|
58 | 83 | {
|
59 | 84 | "type": "node",
|
60 | 85 | "request": "launch",
|
61 |
| - "cwd": "${workspaceFolder}/packages/core", |
62 |
| - "name": "Debug @sentry/core tests - just open file", |
| 86 | + "cwd": "${workspaceFolder}/packages/tracing", |
| 87 | + "name": "Debug @sentry/tracing tests - just open file", |
63 | 88 | "program": "${workspaceFolder}/node_modules/.bin/jest",
|
64 | 89 | "args": [
|
65 | 90 | "--watch",
|
66 | 91 | "--runInBand",
|
67 | 92 | "--config",
|
68 |
| - "${workspaceFolder}/packages/core/package.json", |
| 93 | + "${workspaceFolder}/packages/tracing/package.json", |
69 | 94 | "--coverage",
|
70 | 95 | "false", // coverage messes up the source maps
|
71 | 96 | "${relativeFile}" // remove this to run all package tests
|
72 | 97 | ],
|
73 | 98 | "disableOptimisticBPs": true,
|
74 | 99 | "sourceMaps": true,
|
75 | 100 | "smartStep": true,
|
76 |
| - "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which can't read from stdin |
| 101 | + "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which prints the test output or console logs (depending on "outputCapture" option here), but not both |
77 | 102 | "internalConsoleOptions": "neverOpen", // since we're not using it, don't automatically switch to it
|
78 | 103 | },
|
79 | 104 |
|
|
97 | 122 | "disableOptimisticBPs": true,
|
98 | 123 | "sourceMaps": true,
|
99 | 124 | "smartStep": true,
|
100 |
| - "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which can't read from stdin |
| 125 | + "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which prints the test output or console logs (depending on "outputCapture" option here), but not both |
101 | 126 | "internalConsoleOptions": "neverOpen", // since we're not using it, don't automatically switch to it
|
102 | 127 | },
|
103 | 128 | ]
|
|
0 commit comments