Skip to content

Commit

Permalink
[test] Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Oct 9, 2024
1 parent 9c69a40 commit a5797a3
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 a5797a3

Please sign in to comment.