diff options
| author | Seth Troisi <[email protected]> | 2025-06-11 13:01:04 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-11 13:01:04 -0700 |
| commit | 5586ad5f8af8f000bca0899d92fb785ad92d9afb (patch) | |
| tree | 8db54f55afb4827971aa6b1d212c00d70492260f | |
| parent | e0f4f428fc6bef4f81db379ce1e0368004079c76 (diff) | |
Fix noisy tests (#950)
| -rw-r--r-- | packages/cli/src/ui/hooks/useLoadingIndicator.test.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/cli/src/ui/hooks/useLoadingIndicator.test.ts b/packages/cli/src/ui/hooks/useLoadingIndicator.test.ts index ec6732c7..7a2027f3 100644 --- a/packages/cli/src/ui/hooks/useLoadingIndicator.test.ts +++ b/packages/cli/src/ui/hooks/useLoadingIndicator.test.ts @@ -16,12 +16,11 @@ import { describe('useLoadingIndicator', () => { beforeEach(() => { vi.useFakeTimers(); - vi.clearAllMocks(); }); afterEach(() => { - vi.runOnlyPendingTimers(); vi.useRealTimers(); // Restore real timers after each test + act(() => vi.runOnlyPendingTimers); }); it('should initialize with default values when Idle', () => { |
