es-toolkit/vitest.config.mts
Dayong Lee 3b93b7badf
chore(coverage): exclude test files in coverage processes (#696)
* Fix coverage

* Remove unusable file

* Revert

* also Add in codecov

* Remove unused ignore path
2024-10-09 11:48:02 +09:00

24 lines
534 B
TypeScript

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