diff --git a/vitest.config.mts b/vitest.config.mts index 4e830cb..79da5cd 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -1,7 +1,8 @@ import { defineConfig } from 'vitest/config' import codspeedPlugin from '@codspeed/vitest-plugin' +// eslint-disable-next-line import/no-default-export export default defineConfig({ - // for some reason it do not print results with plugin - plugins: [codspeedPlugin()], + // https://github.com/CodSpeedHQ/codspeed-node/issues/36 + plugins: process.env.CI ? [codspeedPlugin()] : undefined, })