mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Fix noisy tests (#950)
This commit is contained in:
@@ -16,12 +16,11 @@ import {
|
|||||||
describe('useLoadingIndicator', () => {
|
describe('useLoadingIndicator', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
vi.useFakeTimers();
|
vi.useFakeTimers();
|
||||||
vi.clearAllMocks();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
vi.runOnlyPendingTimers();
|
|
||||||
vi.useRealTimers(); // Restore real timers after each test
|
vi.useRealTimers(); // Restore real timers after each test
|
||||||
|
act(() => vi.runOnlyPendingTimers);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should initialize with default values when Idle', () => {
|
it('should initialize with default values when Idle', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user