|
3 | 3 | // Hover to view descriptions of existing attributes.
|
4 | 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
5 | 5 | "version": "0.2.0",
|
| 6 | + // TODO: these are all alike save the package, so figure out how to make that variable |
6 | 7 | "configurations": [
|
7 | 8 | // @sentry/tracing - run a specific test file in watch mode
|
8 | 9 | // must have file in currently active tab when hitting the play button
|
|
51 | 52 | "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which can't read from stdin
|
52 | 53 | "internalConsoleOptions": "neverOpen", // since we're not using it, don't automatically switch to it
|
53 | 54 | },
|
| 55 | + |
| 56 | + // @sentry/core - run a specific test file in watch mode |
| 57 | + // must have file in currently active tab when hitting the play button |
| 58 | + { |
| 59 | + "type": "node", |
| 60 | + "request": "launch", |
| 61 | + "cwd": "${workspaceFolder}/packages/core", |
| 62 | + "name": "Debug @sentry/core tests - just open file", |
| 63 | + "program": "${workspaceFolder}/node_modules/.bin/jest", |
| 64 | + "args": [ |
| 65 | + "--watch", |
| 66 | + "--runInBand", |
| 67 | + "--config", |
| 68 | + "${workspaceFolder}/packages/core/package.json", |
| 69 | + "--coverage", |
| 70 | + "false", // coverage messes up the source maps |
| 71 | + "${relativeFile}" // remove this to run all package tests |
| 72 | + ], |
| 73 | + "disableOptimisticBPs": true, |
| 74 | + "sourceMaps": true, |
| 75 | + "smartStep": true, |
| 76 | + "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which can't read from stdin |
| 77 | + "internalConsoleOptions": "neverOpen", // since we're not using it, don't automatically switch to it |
| 78 | + }, |
54 | 79 | ]
|
55 | 80 | }
|
0 commit comments