vitest.web.perf.config.ts 710 B

123456789101112131415161718192021
  1. import { defineConfig } from 'vitest/config'
  2. import webConfig from './vitest.web.config.ts'
  3. import { vitestExecArgv } from './vitest.shared.ts'
  4. // Manual high-cardinality diagnostics stay outside every default Vitest
  5. // inventory and therefore outside CI's executed test lanes.
  6. export default defineConfig({
  7. ...webConfig,
  8. test: {
  9. ...webConfig.test,
  10. // Memory diagnostics use forced-GC baselines only in this manual inventory.
  11. execArgv: [...vitestExecArgv, '--expose-gc'],
  12. include: [
  13. 'apps/web/tests/**/*.perf.ts',
  14. 'packages/client/ui-conversation/tests/**/*.perf.client.ts',
  15. ],
  16. disableConsoleIntercept: true,
  17. hookTimeout: 180_000,
  18. testTimeout: 600_000,
  19. },
  20. })