test(history): measure packed heap usage

This commit is contained in:
kingwl
2026-08-25 20:10:43 +08:00
committed by imccyu
parent dec9732d1f
commit ea282f5710
5 changed files with 108 additions and 4 deletions
+3
View File
@@ -1,5 +1,6 @@
import { defineConfig } from 'vitest/config'
import webConfig from './vitest.web.config.ts'
import { vitestExecArgv } from './vitest.shared.ts'
// Manual high-cardinality diagnostics stay outside every default Vitest
// inventory and therefore outside CI's executed test lanes.
@@ -7,6 +8,8 @@ export default defineConfig({
...webConfig,
test: {
...webConfig.test,
// Memory diagnostics use forced-GC baselines only in this manual inventory.
execArgv: [...vitestExecArgv, '--expose-gc'],
include: [
'apps/web/tests/**/*.perf.ts',
'packages/api/session-controller/tests/**/*.perf.client.ts',