From 88556a8454152a56af9dc949e8c814f80b21bf90 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Fri, 19 Jan 2024 13:43:36 +0100 Subject: [PATCH] Make toErrorDev assertion agnostic to test matrix --- packages/react-dom/src/__tests__/ReactDOMOption-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-dom/src/__tests__/ReactDOMOption-test.js b/packages/react-dom/src/__tests__/ReactDOMOption-test.js index 156fc822f3944..c0597c36b20d1 100644 --- a/packages/react-dom/src/__tests__/ReactDOMOption-test.js +++ b/packages/react-dom/src/__tests__/ReactDOMOption-test.js @@ -255,15 +255,15 @@ describe('ReactDOMOption', () => { await expect(async () => { await act(async () => { - ReactDOMClient.hydrateRoot(container, children); + ReactDOMClient.hydrateRoot(container, children, { + onRecoverableError: () => {}, + }); }); }).toErrorDev( [ 'Warning: Text content did not match. Server: "FooBaz" Client: "Foo"', 'Warning: An error occurred during hydration. The server HTML was replaced with client content in
', 'Warning: validateDOMNesting(...):
cannot appear as a child of