Skip to content

Commit cea1b48

Browse files
authored
add debug configuration for utils package (#3100)
1 parent 322028f commit cea1b48

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.vscode/launch.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,29 @@
7676
"console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which can't read from stdin
7777
"internalConsoleOptions": "neverOpen", // since we're not using it, don't automatically switch to it
7878
},
79+
80+
// @sentry/utils - run a specific test file in watch mode
81+
// must have file in currently active tab when hitting the play button
82+
{
83+
"type": "node",
84+
"request": "launch",
85+
"cwd": "${workspaceFolder}/packages/utils",
86+
"name": "Debug @sentry/utils tests - just open file",
87+
"program": "${workspaceFolder}/node_modules/.bin/jest",
88+
"args": [
89+
"--watch",
90+
"--runInBand",
91+
"--config",
92+
"${workspaceFolder}/packages/utils/package.json",
93+
"--coverage",
94+
"false", // coverage messes up the source maps
95+
"${relativeFile}" // remove this to run all package tests
96+
],
97+
"disableOptimisticBPs": true,
98+
"sourceMaps": true,
99+
"smartStep": true,
100+
"console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which can't read from stdin
101+
"internalConsoleOptions": "neverOpen", // since we're not using it, don't automatically switch to it
102+
},
79103
]
80104
}

0 commit comments

Comments
 (0)