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(