Skip to content

Commit

Permalink
More async tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Pope committed Mar 12, 2024
1 parent 4428e6e commit 7d5061f
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,9 @@ describe('ReactHooksInspectionIntegration', () => {
}
let renderer;
await act(() => {
renderer = ReactTestRenderer.create(<Foo prop="prop" />);
renderer = ReactTestRenderer.create(<Foo prop="prop" />, {
unstable_isConcurrent: true,
});
});

let childFiber = renderer.root.findByType(Foo)._currentFiber();
Expand Down Expand Up @@ -757,7 +759,7 @@ describe('ReactHooksInspectionIntegration', () => {
"isStateEditable": false,
"name": "Memo",
"subHooks": [],
"value": "Ab",
"value": "AB",
},
{
"debugInfo": null,
Expand Down Expand Up @@ -1373,7 +1375,9 @@ describe('ReactHooksInspectionIntegration', () => {
}
let renderer;
await act(() => {
renderer = ReactTestRenderer.create(<Example />);
renderer = ReactTestRenderer.create(<Example />, {
unstable_isConcurrent: true,
});
});
const childFiber = renderer.root.findByType(Example)._currentFiber();
const tree = ReactDebugTools.inspectHooksOfFiber(childFiber);
Expand Down Expand Up @@ -2290,7 +2294,9 @@ describe('ReactHooksInspectionIntegration', () => {

let renderer;
await act(() => {
renderer = ReactTestRenderer.create(<Foo />);
renderer = ReactTestRenderer.create(<Foo />, {
unstable_isConcurrent: true,
});
});
const childFiber = renderer.root.findByType(Foo)._currentFiber();
const tree = ReactDebugTools.inspectHooksOfFiber(childFiber);
Expand Down Expand Up @@ -2422,7 +2428,9 @@ describe('ReactHooksInspectionIntegration', () => {

let renderer;
await act(() => {
renderer = ReactTestRenderer.create(<Foo />);
renderer = ReactTestRenderer.create(<Foo />, {
unstable_isConcurrent: true,
});
});
const childFiber = renderer.root.findByType(Foo)._currentFiber();
const tree = ReactDebugTools.inspectHooksOfFiber(childFiber);
Expand Down

0 comments on commit 7d5061f

Please sign in to comment.