The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): model settings tests clear their toast timers before jsdom tears down
Teknium9d05e7ff92d3
diff --git a/apps/desktop/src/app/settings/model-settings.test.tsx b/apps/desktop/src/app/settings/model-settings.test.tsxindex ede7e188677..447af0b6960 100644--- a/apps/desktop/src/app/settings/model-settings.test.tsx+++ b/apps/desktop/src/app/settings/model-settings.test.tsx@@ -91,6 +91,9 @@ beforeEach(() => {afterEach(() => {cleanup()+ // A success toast arms a 5 s auto-dismiss timer; left running, it fires after this file's+ // jsdom window is gone and vitest reports "window is not defined" as an unhandled error.+ clearNotifications()vi.clearAllMocks()profileSwitchHandler = null})