diff --git a/tests/vitest.config.ts b/tests/vitest.config.ts index 7a1f7f2d..2b2d3df0 100644 --- a/tests/vitest.config.ts +++ b/tests/vitest.config.ts @@ -18,5 +18,11 @@ export default defineConfig({ resolve(__dirname, 'unit/**/*.test.ts'), resolve(__dirname, 'integration/**/*.test.ts'), ], + // Suppress console output from production code during tests (e.g. expected + // warn/error calls when intentionally feeding bad input to parsers). + // Tests that need to assert on console calls can still use vi.spyOn(console, ...). + onConsoleLog() { + return false; + }, }, });