@@ -1150,7 +1150,7 @@ describe('context legacy', () => {
11501150
11511151 if ( ReactFeatureFlags . consoleManagedByDevToolsDuringStrictMode ) {
11521152 it ( 'does not disable logs for class double render' , async ( ) => {
1153- spyOnDevAndProd ( console , 'log' ) ;
1153+ spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
11541154
11551155 let count = 0 ;
11561156 class Foo extends React . Component {
@@ -1179,7 +1179,7 @@ describe('context legacy', () => {
11791179 } ) ;
11801180
11811181 it ( 'does not disable logs for class double ctor' , async ( ) => {
1182- spyOnDevAndProd ( console , 'log' ) ;
1182+ spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
11831183
11841184 let count = 0 ;
11851185 class Foo extends React . Component {
@@ -1211,7 +1211,7 @@ describe('context legacy', () => {
12111211 } ) ;
12121212
12131213 it ( 'does not disable logs for class double getDerivedStateFromProps' , async ( ) => {
1214- spyOnDevAndProd ( console , 'log' ) ;
1214+ spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
12151215
12161216 let count = 0 ;
12171217 class Foo extends React . Component {
@@ -1244,7 +1244,7 @@ describe('context legacy', () => {
12441244 } ) ;
12451245
12461246 it ( 'does not disable logs for class double shouldComponentUpdate' , async ( ) => {
1247- spyOnDevAndProd ( console , 'log' ) ;
1247+ spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
12481248
12491249 let count = 0 ;
12501250 class Foo extends React . Component {
@@ -1285,7 +1285,7 @@ describe('context legacy', () => {
12851285 } ) ;
12861286
12871287 it ( 'does not disable logs for class state updaters' , async ( ) => {
1288- spyOnDevAndProd ( console , 'log' ) ;
1288+ spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
12891289
12901290 let inst ;
12911291 let count = 0 ;
@@ -1323,7 +1323,7 @@ describe('context legacy', () => {
13231323 } ) ;
13241324
13251325 it ( 'does not disable logs for function double render' , async ( ) => {
1326- spyOnDevAndProd ( console , 'log' ) ;
1326+ spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
13271327
13281328 let count = 0 ;
13291329 function Foo ( ) {
@@ -1350,7 +1350,7 @@ describe('context legacy', () => {
13501350 } ) ;
13511351 } else {
13521352 it ( 'disable logs for class double render' , async ( ) => {
1353- spyOnDevAndProd ( console , 'log' ) ;
1353+ spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
13541354
13551355 let count = 0 ;
13561356 class Foo extends React . Component {
@@ -1379,7 +1379,7 @@ describe('context legacy', () => {
13791379 } ) ;
13801380
13811381 it ( 'disables logs for class double ctor' , async ( ) => {
1382- spyOnDevAndProd ( console , 'log' ) ;
1382+ spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
13831383
13841384 let count = 0 ;
13851385 class Foo extends React . Component {
@@ -1411,7 +1411,7 @@ describe('context legacy', () => {
14111411 } ) ;
14121412
14131413 it ( 'disable logs for class double getDerivedStateFromProps' , async ( ) => {
1414- spyOnDevAndProd ( console , 'log' ) ;
1414+ spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
14151415
14161416 let count = 0 ;
14171417 class Foo extends React . Component {
@@ -1444,7 +1444,7 @@ describe('context legacy', () => {
14441444 } ) ;
14451445
14461446 it ( 'disable logs for class double shouldComponentUpdate' , async ( ) => {
1447- spyOnDevAndProd ( console , 'log' ) ;
1447+ spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
14481448
14491449 let count = 0 ;
14501450 class Foo extends React . Component {
@@ -1484,7 +1484,7 @@ describe('context legacy', () => {
14841484 } ) ;
14851485
14861486 it ( 'disable logs for class state updaters' , async ( ) => {
1487- spyOnDevAndProd ( console , 'log' ) ;
1487+ spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
14881488
14891489 let inst ;
14901490 let count = 0 ;
@@ -1522,7 +1522,7 @@ describe('context legacy', () => {
15221522 } ) ;
15231523
15241524 it ( 'disable logs for function double render' , async ( ) => {
1525- spyOnDevAndProd ( console , 'log' ) ;
1525+ spyOnDevAndProd ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
15261526
15271527 let count = 0 ;
15281528 function Foo ( ) {
0 commit comments