vitest.config.ts•653 B
import { coverageConfigDefaults, defineConfig, mergeConfig } from 'vitest/config';
import { configShared } from './configShared';
export default mergeConfig(
defineConfig(configShared),
defineConfig({
test: {
dir: 'src',
setupFiles: './src/testSetup.ts',
outputFile: 'junit/unit.xml',
coverage: {
provider: 'v8',
include: ['src'],
exclude: [
'src/scripts/**/*',
'src/sdks/**/*',
'src/server/**/*',
...coverageConfigDefaults.exclude,
],
reporter: ['text', 'cobertura'],
reportsDirectory: './coverage/unit',
},
},
}),
);