oxc/napi/parser/vitest.config.mjs
overlookmotel 692e9bcab4
chore(napi): only enable Codspeed plugin on CI (#2733)
When running NAPI benchmarks locally, Codspeed plugin hides the
benchmark results.
2024-03-15 15:22:49 +00:00

6 lines
187 B
JavaScript

import {defineConfig} from 'vitest/config';
import codspeedPlugin from '@codspeed/vitest-plugin';
export default defineConfig({
plugins: process.env.CI ? [codspeedPlugin()] : []
});