mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
23 lines
529 B
TypeScript
23 lines
529 B
TypeScript
import { defaultExclude, 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: true,
|
|
exclude: [
|
|
...defaultExclude,
|
|
'**/single-failed/**',
|
|
],
|
|
|
|
// This configuration is edited by tests
|
|
reporters: 'verbose',
|
|
|
|
forceRerunTriggers: [
|
|
'**/force-watch/**',
|
|
],
|
|
},
|
|
})
|