mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-24 03:32:58 +03:00
3cc1a03519
* chore: add codspeed * chore: fix the benchmark file to clearly distinguish between the comparison targets * chore: fix typo
15 lines
373 B
TypeScript
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/**/*'],
|
|
},
|
|
},
|
|
});
|