fix(tests): prevent jest hangs caused by MessageChannel-mocked React scheduler (#39957)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Joe Li
2026-05-08 14:27:03 -07:00
committed by GitHub
parent cfb0b6e811
commit e934f2af92
14 changed files with 48 additions and 28 deletions

View File

@@ -53,7 +53,7 @@ describe('QueryAutoRefresh', () => {
const refreshApi = 'glob:*/api/v1/query/updated_since?*';
beforeEach(() => {
jest.useFakeTimers();
jest.useFakeTimers({ advanceTimers: true });
});
afterEach(() => {