Skip to content

Commit 88556a8

Browse files
author
Sebastian Silbermann
committed
Make toErrorDev assertion agnostic to test matrix
1 parent c7afadd commit 88556a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-dom/src/__tests__/ReactDOMOption-test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,15 @@ describe('ReactDOMOption', () => {
255255

256256
await expect(async () => {
257257
await act(async () => {
258-
ReactDOMClient.hydrateRoot(container, children);
258+
ReactDOMClient.hydrateRoot(container, children, {
259+
onRecoverableError: () => {},
260+
});
259261
});
260262
}).toErrorDev(
261263
[
262264
'Warning: Text content did not match. Server: "FooBaz" Client: "Foo"',
263265
'Warning: An error occurred during hydration. The server HTML was replaced with client content in <div>',
264266
'Warning: validateDOMNesting(...): <div> cannot appear as a child of <option>',
265-
'Error: Text content does not match server-rendered HTML.',
266-
'Error: There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering.',
267267
],
268268
{withoutStack: 1},
269269
);

0 commit comments

Comments
 (0)