mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-01 01:18:34 +00:00
The 'should disable cancel button while saving' test mocks the save API with setTimeout(100) but never waits for the promise to resolve. When the timer fires after the test tears down, setSaving(false) tries to schedule a React update on an unmounted root, and resolveUpdatePriority reads window on a dead JSDOM. Vitest surfaces this as 'ReferenceError: window is not defined' and fails the whole UI Unit Tests job intermittently. Wait for the Edit Settings button to reappear after Save Changes so the mocked save resolves before the test exits. Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||