diff --git a/packages/shared/__tests__/ReactError-test.internal.js b/packages/shared/__tests__/ReactError-test.internal.js index 9411616fa3c93..ba25cfdab3e6b 100644 --- a/packages/shared/__tests__/ReactError-test.internal.js +++ b/packages/shared/__tests__/ReactError-test.internal.js @@ -41,7 +41,7 @@ describe('ReactError', () => { it('should error with minified error code', () => { expect(() => ReactDOM.render('Hi', null)).toThrowError( 'Minified React error #200; visit ' + - 'https://reactjs.org/docs/error-decoder.html?invariant=200' + + 'https://react.dev/errors/200' + ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.', ); diff --git a/packages/shared/__tests__/ReactErrorProd-test.internal.js b/packages/shared/__tests__/ReactErrorProd-test.internal.js index be40f7b6d43cc..83eb16d9579f8 100644 --- a/packages/shared/__tests__/ReactErrorProd-test.internal.js +++ b/packages/shared/__tests__/ReactErrorProd-test.internal.js @@ -19,21 +19,21 @@ describe('ReactErrorProd', () => { it('should throw with the correct number of `%s`s in the URL', () => { expect(formatProdErrorMessage(124, 'foo', 'bar')).toEqual( 'Minified React error #124; visit ' + - 'https://reactjs.org/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' + + 'https://react.dev/errors/124?args[]=foo&args[]=bar' + ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.', ); expect(formatProdErrorMessage(20)).toEqual( 'Minified React error #20; visit ' + - 'https://reactjs.org/docs/error-decoder.html?invariant=20' + + 'https://react.dev/errors/20' + ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.', ); expect(formatProdErrorMessage(77, '