@@ -1106,7 +1106,7 @@ describe('context legacy', () => {
1106
1106
1107
1107
if ( ReactFeatureFlags . consoleManagedByDevToolsDuringStrictMode ) {
1108
1108
it ( 'does not disable logs for class double render' , async ( ) => {
1109
- spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
1109
+ spyOnDevAndProd ( console , 'log' ) ;
1110
1110
1111
1111
let count = 0 ;
1112
1112
class Foo extends React . Component {
@@ -1135,7 +1135,7 @@ describe('context legacy', () => {
1135
1135
} ) ;
1136
1136
1137
1137
it ( 'does not disable logs for class double ctor' , async ( ) => {
1138
- spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
1138
+ spyOnDevAndProd ( console , 'log' ) ;
1139
1139
1140
1140
let count = 0 ;
1141
1141
class Foo extends React . Component {
@@ -1167,7 +1167,7 @@ describe('context legacy', () => {
1167
1167
} ) ;
1168
1168
1169
1169
it ( 'does not disable logs for class double getDerivedStateFromProps' , async ( ) => {
1170
- spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
1170
+ spyOnDevAndProd ( console , 'log' ) ;
1171
1171
1172
1172
let count = 0 ;
1173
1173
class Foo extends React . Component {
@@ -1200,7 +1200,7 @@ describe('context legacy', () => {
1200
1200
} ) ;
1201
1201
1202
1202
it ( 'does not disable logs for class double shouldComponentUpdate' , async ( ) => {
1203
- spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
1203
+ spyOnDevAndProd ( console , 'log' ) ;
1204
1204
1205
1205
let count = 0 ;
1206
1206
class Foo extends React . Component {
@@ -1241,7 +1241,7 @@ describe('context legacy', () => {
1241
1241
} ) ;
1242
1242
1243
1243
it ( 'does not disable logs for class state updaters' , async ( ) => {
1244
- spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
1244
+ spyOnDevAndProd ( console , 'log' ) ;
1245
1245
1246
1246
let inst ;
1247
1247
let count = 0 ;
@@ -1279,7 +1279,7 @@ describe('context legacy', () => {
1279
1279
} ) ;
1280
1280
1281
1281
it ( 'does not disable logs for function double render' , async ( ) => {
1282
- spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
1282
+ spyOnDevAndProd ( console , 'log' ) ;
1283
1283
1284
1284
let count = 0 ;
1285
1285
function Foo ( ) {
@@ -1306,7 +1306,7 @@ describe('context legacy', () => {
1306
1306
} ) ;
1307
1307
} else {
1308
1308
it ( 'disable logs for class double render' , async ( ) => {
1309
- spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
1309
+ spyOnDevAndProd ( console , 'log' ) ;
1310
1310
1311
1311
let count = 0 ;
1312
1312
class Foo extends React . Component {
@@ -1335,7 +1335,7 @@ describe('context legacy', () => {
1335
1335
} ) ;
1336
1336
1337
1337
it ( 'disables logs for class double ctor' , async ( ) => {
1338
- spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
1338
+ spyOnDevAndProd ( console , 'log' ) ;
1339
1339
1340
1340
let count = 0 ;
1341
1341
class Foo extends React . Component {
@@ -1367,7 +1367,7 @@ describe('context legacy', () => {
1367
1367
} ) ;
1368
1368
1369
1369
it ( 'disable logs for class double getDerivedStateFromProps' , async ( ) => {
1370
- spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
1370
+ spyOnDevAndProd ( console , 'log' ) ;
1371
1371
1372
1372
let count = 0 ;
1373
1373
class Foo extends React . Component {
@@ -1400,7 +1400,7 @@ describe('context legacy', () => {
1400
1400
} ) ;
1401
1401
1402
1402
it ( 'disable logs for class double shouldComponentUpdate' , async ( ) => {
1403
- spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
1403
+ spyOnDevAndProd ( console , 'log' ) ;
1404
1404
1405
1405
let count = 0 ;
1406
1406
class Foo extends React . Component {
@@ -1440,7 +1440,7 @@ describe('context legacy', () => {
1440
1440
} ) ;
1441
1441
1442
1442
it ( 'disable logs for class state updaters' , async ( ) => {
1443
- spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
1443
+ spyOnDevAndProd ( console , 'log' ) ;
1444
1444
1445
1445
let inst ;
1446
1446
let count = 0 ;
@@ -1478,7 +1478,7 @@ describe('context legacy', () => {
1478
1478
} ) ;
1479
1479
1480
1480
it ( 'disable logs for function double render' , async ( ) => {
1481
- spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
1481
+ spyOnDevAndProd ( console , 'log' ) ;
1482
1482
1483
1483
let count = 0 ;
1484
1484
function Foo ( ) {
0 commit comments