Skip to content

Commit

Permalink
[charts] Run benchmarks in a real browser
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardobelchior committed Feb 14, 2025
1 parent 6e19f24 commit 5a452fe
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions test/performance-charts/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ import { defineConfig } from 'vitest/config';
import codspeedPlugin from '@codspeed/vitest-plugin';
import react from '@vitejs/plugin-react';

const isCI = process.env.CI === 'true';

export default defineConfig({
plugins: [codspeedPlugin(), react()],
plugins: [...(isCI ? [codspeedPlugin()] : []), react()],
test: {
setupFiles: ['./setup.ts'],
environment: 'jsdom',
// browser: {
// enabled: true,
// headless: true,
// name: 'chromium',
// provider: 'playwright',
// providerOptions: {
// timeout: 60000,
// },
// },
browser: {
enabled: true,
headless: true,
instances: [{ browser: 'chromium', testTimeout: 60_000 }],
provider: 'playwright',
},
},
});

0 comments on commit 5a452fe

Please sign in to comment.