es-toolkit/vitest.config.mts
Jun 3cc1a03519
chore(*): Add codspeed for benchmark visualization (#75)
* chore: add codspeed

* chore: fix the benchmark file to clearly distinguish between the comparison targets

* chore: fix typo
2024-06-18 10:40:07 +09:00

15 lines
373 B
TypeScript

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