diff --git a/packages/react-reconciler/src/__tests__/ReactOffscreen-test.js b/packages/react-reconciler/src/__tests__/ReactOffscreen-test.js index ea19c20de90ed..c44f261337fcc 100644 --- a/packages/react-reconciler/src/__tests__/ReactOffscreen-test.js +++ b/packages/react-reconciler/src/__tests__/ReactOffscreen-test.js @@ -2077,8 +2077,6 @@ describe('ReactOffscreen', () => { await act(() => { root.render(); }); - expect(Scheduler).toHaveYielded([ - 'attach child' - ]); + expect(Scheduler).toHaveYielded(['attach child']); }); });