es-toolkit/vitest.config.mts

15 lines
373 B
TypeScript
Raw Normal View History

2024-04-25 14:56:13 +03:00
import { defineConfig } from 'vitest/config';
import packageJson from './package.json';
import codspeedPlugin from '@codspeed/vitest-plugin';
2024-04-25 14:56:13 +03:00
export default defineConfig({
...(process.env.CI === 'true' ? { plugins: [codspeedPlugin()] } : {}),
2024-04-25 14:56:13 +03:00
test: {
name: packageJson.name,
coverage: {
provider: 'istanbul',
include: ['src/**/*'],
},
},
});