[test] # PGLite WASM cold start + initSchema() runs ~5–20s on loaded machines. # Default 5s is too short for those tests' beforeAll hooks. 60s is the # empirical ceiling we observed for the slowest cold-init paths. # # v0.26.4: scripts/run-unit-parallel.sh and scripts/run-unit-shard.sh # also pass `--timeout=60000` explicitly so the ceiling is consistent # whether tests are invoked through the wrapper or directly via bun test. timeout = 60_000 # v0.37 fix wave: pin gateway defaults to legacy OpenAI/1536 BEFORE any # test runs, so the 20+ test files with hardcoded 1536-d Float32Array # fixtures still match the schema. v0.37's production default is ZE/1280; # tests that want the new default call configureGateway() explicitly in # their own beforeAll. # # #2823: redirect GBRAIN_AUDIT_DIR to a per-run scratch dir BEFORE any test # runs, so audit-emitting code paths (content-sanity, shell-audit, etc.) # can't leak fixture events into the operator's real ~/.gbrain/audit/. See # test/helpers/audit-dir-preload.ts for the full rationale. preload = ["./test/helpers/legacy-embedding-preload.ts", "./test/helpers/audit-dir-preload.ts"]