Skip to content

Commit 8d49499

Browse files
committed
Kill smart idea
1 parent 6f8357a commit 8d49499

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

packages/react-dom/src/__tests__/utils/ReactDOMServerIntegrationTestUtils.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,7 @@ module.exports = function (initModules) {
101101
for (let i = 0; i < console.error.mock.calls.length; i++) {
102102
const args = console.error.mock.calls[i];
103103
const [format, ...rest] = args;
104-
if (
105-
!shouldIgnoreConsoleError(format, rest, {
106-
TODO_ignoreHydrationErrors: true,
107-
})
108-
) {
104+
if (!shouldIgnoreConsoleError(format, rest)) {
109105
filteredWarnings.push(args);
110106
}
111107
}

scripts/jest/shouldIgnoreConsoleError.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
'use strict';
22

3-
module.exports = function shouldIgnoreConsoleError(
4-
format,
5-
args,
6-
{TODO_ignoreHydrationErrors} = {TODO_ignoreHydrationErrors: false}
7-
) {
3+
module.exports = function shouldIgnoreConsoleError(format, args) {
84
if (__DEV__) {
95
if (typeof format === 'string') {
106
if (

0 commit comments

Comments
 (0)