vitest/test/cli/fixtures/tty/vitest.config.ts
2024-04-26 15:43:27 +02:00

14 lines
359 B
TypeScript

import { defineConfig } from 'vitest/config'
// Patch stdin on the process so that we can fake it to seem like a real interactive terminal and pass the TTY checks
process.stdin.isTTY = true
process.stdin.setRawMode = () => process.stdin
export default defineConfig({
test: {
watch: false,
reporters: 'verbose',
teardownTimeout: 5_000,
},
})