From 841a9d731ab05ff11df423f00962b5d37582d3b0 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Sun, 5 Jan 2025 15:06:22 -0500 Subject: [PATCH] fix test --- .../src/__tests__/ReactErrorBoundaries-test.internal.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/react-dom/src/__tests__/ReactErrorBoundaries-test.internal.js b/packages/react-dom/src/__tests__/ReactErrorBoundaries-test.internal.js index 0d9497d23c1fb..5b9de4c97357a 100644 --- a/packages/react-dom/src/__tests__/ReactErrorBoundaries-test.internal.js +++ b/packages/react-dom/src/__tests__/ReactErrorBoundaries-test.internal.js @@ -2401,9 +2401,7 @@ describe('ReactErrorBoundaries', () => { }).rejects.toThrow( 'Element type is invalid: ' + 'expected a string (for built-in components) or a ' + - 'class/function (for composite components) but got: undefined. ' + - "You likely forgot to export your component from the file it's defined in, " + - 'or you might have mixed up default and named imports.', + 'class/function (for composite components) but got: undefined.', ); if (!gate('enableOwnerStacks')) { assertConsoleErrorDev(