We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b2eb7d commit f9c0a5cCopy full SHA for f9c0a5c
packages/worker/src/reporter.ts
@@ -151,11 +151,11 @@ export class VSCodeReporter implements Reporter {
151
//
152
// Note: This is too late to enable the inspector itself, but we can still add setup files
153
154
- const isBrowserEnabled = vitest.projects.some(project => project.config.browser?.enabled)
155
-
156
- if (isBrowserEnabled && this.debug !== undefined && typeof this.debug === 'object') {
+ if (this.debug !== undefined && typeof this.debug === 'object') {
157
vitest.projects.forEach((project) => {
158
- project.config.setupFiles.push(this.setupFilePaths.browserDebug)
+ if (project.config.browser?.enabled) {
+ project.config.setupFiles.push(this.setupFilePaths.browserDebug)
+ }
159
})
160
}
161
0 commit comments