test: add opt-in web performance scenario

This commit is contained in:
kingwl
2026-08-04 14:23:34 +08:00
committed by imccyu
parent 64f9a83bd6
commit a435aae538
8 changed files with 526 additions and 7 deletions
+15
View File
@@ -0,0 +1,15 @@
import { defineConfig } from 'vitest/config'
import webConfig from './vitest.web.config.ts'
// Manual high-cardinality diagnostics stay outside vitest.web.config.ts's
// .e2e.ts/.snapshot.ts inventory and therefore outside the CI web gate.
export default defineConfig({
...webConfig,
test: {
...webConfig.test,
include: ['apps/web/tests/**/*.perf.ts'],
disableConsoleIntercept: true,
hookTimeout: 180_000,
testTimeout: 600_000,
},
})