Skip to content

Commit 77d7e17

Browse files
committed
fix: don't exclude node_modules by default, only the vitest module
1 parent f5d32e8 commit 77d7e17

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ These options are resolved relative to the [workspace file](https://code.visuals
9494
- `vitest.nodeEnv`: Environment passed to the runner process in addition to
9595
`process.env`
9696
- `vitest.debugExclude`: Excludes files matching specified glob patterns from debugging. Default:
97-
`[\"<node_internals>/**\", \"**/node_modules/**\"]`
97+
`["<node_internals>/**"]`
9898
- `vitest.debugOutFiles`: If source maps are enabled, these glob patterns specify the generated JavaScript files. If a pattern starts with `!` the files are excluded. If not specified, the generated code is expected in the same directory as its source. Default: `["${workspaceFolder}/**/*.(m|c|)js", "!**/node_modules/**"]`
9999
- `vitest.maximumConfigs`: The maximum amount of configs that Vitest extension can load. If exceeded, the extension will show a warning suggesting to use a workspace config file. Default: `5`
100100
- `vitest.logLevel`: How verbose should the logger be in the "Output" channel. Default: `info`

packages/extension/src/debug.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ export async function debugTests(
5050

5151
const skipFiles = [
5252
...(config.debugExclude || []),
53-
'**/@vitest/{runner,utils}/*',
53+
'**/node_modules/@vitest/{runner,utils}/**',
54+
'**/node_modules/vitest/dist/**',
5455
]
5556

5657
const debugConfig = {

0 commit comments

Comments
 (0)