chore(napi): only enable Codspeed plugin on CI (#2733)

When running NAPI benchmarks locally, Codspeed plugin hides the
benchmark results.
This commit is contained in:
overlookmotel 2024-03-15 15:22:49 +00:00 committed by GitHub
parent 75226f3b4a
commit 692e9bcab4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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