The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(web): run the dashboard test project in development mode
zhengpeng3cf2eb1c94ac
diff --git a/web/vitest.config.ts b/web/vitest.config.tsindex e23a663dc00..883fc8318b9 100644--- a/web/vitest.config.ts+++ b/web/vitest.config.ts@@ -26,5 +26,16 @@ export default defineConfig({// timeout (main run 34600757569: 5079ms). Same headroom rationale as// apps/desktop/vitest.config.ts; genuinely hung tests still fail.testTimeout: 15_000,+ // React 19 ships `act` only in its development build, and the jsdom suites+ // here drive components through `act()`. A shell that already exports+ // NODE_ENV=production (the one that launched the app, a packaged CI step,+ // an editor terminal) is inherited by vitest, `React.act` resolves to+ // undefined, and every `createRoot` test in this project fails with+ // "act is not a function". Pin the worker to development so the suite is+ // independent of the ambient environment; app runtime and production+ // builds are untouched.+ env: {+ NODE_ENV: "development",+ },},});