Skip to content

Commit

Permalink
[test] Remove dead code (#44056)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Oct 10, 2024
1 parent 488c8fa commit 8d13ccd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages-internal/test-utils/src/mochaHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d13ccd

Please sign in to comment.