vitest/test/workspaces/vitest.config.ts
2023-04-09 15:12:26 +02:00

19 lines
471 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: {
coverage: {
all: true,
},
reporters: ['default', 'json'],
outputFile: './results.json',
globalSetup: './globalTest.ts',
},
})