Skip to content

Commit da5f591

Browse files
committed
fix: don't crash with 'passed-only'
Fixes #786
1 parent aa0b454 commit da5f591

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/worker/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export async function initVitest(
140140
)
141141
;((vitest as any).reporters as Reporter[]).forEach((reporter) => {
142142
if (!(reporter instanceof VSCodeReporter)) {
143-
reporter.onUserConsoleLog = undefined
143+
reporter.onUserConsoleLog = () => {}
144144
}
145145
})
146146

0 commit comments

Comments
 (0)