mcporter/vitest.config.ts
2026-03-29 09:53:17 +09:00

22 lines
674 B
TypeScript

import { defineConfig } from 'vitest/config';
const quietReporterEnabled = process.env.MCPORTER_TEST_REPORTER === 'quiet';
const quietReporterOptions = quietReporterEnabled
? {
reporters: ['dot'],
silent: 'passed-only' as const,
}
: {};
export default defineConfig({
test: {
// Quiet mode hides console output for passing tests so CLI fixture logs
// (e.g., the full `mcporter list` banners) don't overwhelm the reporter.
...quietReporterOptions,
// CLI-heavy suites import the full entrypoint in parallel and can exceed the
// default 5s timeout under local load even when behavior is correct.
testTimeout: 10_000,
},
});