GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fixed flushing problem with tests · react/react@ee4806f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-devtools-shared/src/__tests__
    • utils.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-devtools-shared/src/__tests__/utils.js‎

Copy file name to clipboardExpand all lines: packages/react-devtools-shared/src/__tests__/utils.js
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ export function act(callback: Function): void {
1818
});
1919

2020
// Flush Bridge operations
21-
actDOM(() => {
22-
actTestRenderer(() => {
23-
jest.runAllTimers();
21+
while (global.mockGetTimersCount() > 0) {
22+
actDOM(() => {
23+
actTestRenderer(() => {
24+
jest.runAllTimers();
25+
});
2426
});
25-
});
27+
}
2628
}
2729

2830
export async function actAsync(

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.