es-toolkit/vitest.config.mts

24 lines
534 B
TypeScript
Raw Normal View History

2024-04-25 14:56:13 +03:00
import { defineConfig } from 'vitest/config';
import packageJson from './package.json';
export default defineConfig({
test: {
name: packageJson.name,
exclude: ['./benchmarks/**/*', '.yarn/**/*'],
2024-04-25 14:56:13 +03:00
coverage: {
provider: 'istanbul',
include: ['src/**/*'],
exclude: ['src/compat/_internal/**/*', 'src/**/*.spec.ts'],
2024-04-25 14:56:13 +03:00
},
watch: false,
deps: {
optimizer: {
ssr: {
enabled: true,
include: ['es-toolkit', 'es-toolkit/compat'],
},
},
},
2024-04-25 14:56:13 +03:00
},
});