Add vitest.setup.ts with IS_REACT_ACT_ENVIRONMENT=true + auto-cleanup, and wrap render()/fireEvent() calls in act() across 8 test files: - provider-config-panel.test.tsx: wrap renderPanel + fireEvent in act - providers-settings.test.tsx: wrap renderProvidersSettings + fireEvent in act - use-prompt-actions/index.test.tsx: add actRender helper, wrap all 38 render calls, wrap Harness handle methods (submitText/cancelRun/steerPrompt/ restoreToMessage) in act at the onReady callback level - attachments.test.tsx: make renderWithI18n async + wrap in act - skills/index.test.tsx: make renderSkills async + wrap fireEvent in act - messaging/index.test.tsx: make renderMessaging async + wrap fireEvent in act - gateway-connecting-overlay.test.tsx: wrap all render/rerender in act - preview-pane.test.tsx: wrap render calls in act, make tests async Reduces act warnings from 44 to 4 (remaining are fake-timer + pre-render store mutation edge cases). All 146 test files / 1180 tests still pass. |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| fonts | ||
| hooks | ||
| i18n | ||
| lib | ||
| store | ||
| themes | ||
| types | ||
| global.d.ts | ||
| hermes-parity.test.ts | ||
| hermes-profile-scope.test.ts | ||
| hermes.test.ts | ||
| hermes.ts | ||
| main.tsx | ||
| styles.css | ||
| vite-env.d.ts | ||