From a5797a3d6208d4c69a319bb31880a1f6fa286217 Mon Sep 17 00:00:00 2001 From: MUI bot <2109932+Janpot@users.noreply.github.com> Date: Wed, 9 Oct 2024 16:05:46 +0200 Subject: [PATCH] [test] Remove dead code --- packages-internal/test-utils/src/mochaHooks.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages-internal/test-utils/src/mochaHooks.js b/packages-internal/test-utils/src/mochaHooks.js index 58b71ee141df5f..8866537bc66698 100644 --- a/packages-internal/test-utils/src/mochaHooks.js +++ b/packages-internal/test-utils/src/mochaHooks.js @@ -93,15 +93,6 @@ function createUnexpectedConsoleMessagesHooks(Mocha, methodName, expectedMatcher } } - // Ignore legacy root deprecation warnings - // TODO: Remove once we no longer use legacy roots. - if ( - message.includes('Use createRoot instead.') || - message.includes('Use hydrateRoot instead.') - ) { - return; - } - if (message.includes('Warning: useLayoutEffect does nothing on the server')) { // Controversial warning that is commonly ignored by switching to `useEffect` on the server. // https://github.com/facebook/react/issues/14927