mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
16 lines
431 B
TypeScript
16 lines
431 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
if (process.env.TEST_WATCH) {
|
|
// 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: {
|
|
reporters: ['default', 'json'],
|
|
outputFile: './results.json',
|
|
globalSetup: './globalTest.ts',
|
|
},
|
|
})
|