mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
24 lines
519 B
TypeScript
24 lines
519 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import { cwdPlugin } from './cwdPlugin.js'
|
|
|
|
export default defineConfig({
|
|
envPrefix: ['VITE_', 'CUSTOM_', 'ROOT_'],
|
|
plugins: [cwdPlugin('ROOT')],
|
|
test: {
|
|
coverage: {
|
|
enabled: true,
|
|
provider: 'istanbul',
|
|
},
|
|
reporters: ['default', 'json'],
|
|
outputFile: './results.json',
|
|
globalSetup: './globalTest.ts',
|
|
env: {
|
|
CONFIG_VAR: 'root',
|
|
CONFIG_OVERRIDE: 'root',
|
|
},
|
|
provide: {
|
|
globalConfigValue: true,
|
|
},
|
|
},
|
|
})
|