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 — [tests] assertLog before act in ReactUse (#28762) · react/react@dfc64c6

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-reconciler/src/__tests__
    • ReactUse-test.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-reconciler/src/__tests__/ReactUse-test.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/__tests__/ReactUse-test.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ describe('ReactUse', () => {
663663
}
664664

665665
const root1 = ReactNoop.createRoot();
666+
assertLog(['Async text requested [Hi]']);
667+
666668
await act(() => {
667669
root1.render(<Suspense fallback={<Text text="Loading..." />} />);
668670
});
@@ -677,7 +679,7 @@ describe('ReactUse', () => {
677679
);
678680
});
679681
});
680-
assertLog(['Async text requested [Hi]']);
682+
assertLog([]);
681683

682684
// While we're waiting for the first root's data to resolve, a second
683685
// root renders.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — 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.