@@ -69,7 +69,7 @@ describe('DebugTracing', () => {
69
69
expect ( logs ) . toEqual ( [ ] ) ;
70
70
} ) ;
71
71
72
- // @gate experimental && enableDebugTracing
72
+ // @gate experimental && build === 'development' && enableDebugTracing
73
73
it ( 'should log sync render with suspense' , async ( ) => {
74
74
const fakeSuspensPromise = Promise . resolve ( true ) ;
75
75
function Example ( ) {
@@ -96,7 +96,7 @@ describe('DebugTracing', () => {
96
96
expect ( logs ) . toEqual ( [ 'log: ⚛️ Example resolved' ] ) ;
97
97
} ) ;
98
98
99
- // @gate experimental && enableDebugTracing
99
+ // @gate experimental && build === 'development' && enableDebugTracing
100
100
it ( 'should log concurrent render with suspense' , async ( ) => {
101
101
const fakeSuspensPromise = Promise . resolve ( true ) ;
102
102
function Example ( ) {
@@ -130,7 +130,7 @@ describe('DebugTracing', () => {
130
130
expect ( logs ) . toEqual ( [ 'log: ⚛️ Example resolved' ] ) ;
131
131
} ) ;
132
132
133
- // @gate experimental && enableDebugTracing
133
+ // @gate experimental && build === 'development' && enableDebugTracing
134
134
it ( 'should log cascading class component updates' , ( ) => {
135
135
class Example extends React . Component {
136
136
state = { didMount : false } ;
@@ -164,7 +164,7 @@ describe('DebugTracing', () => {
164
164
] ) ;
165
165
} ) ;
166
166
167
- // @gate experimental && enableDebugTracing
167
+ // @gate experimental && build === 'development' && enableDebugTracing
168
168
it ( 'should log render phase state updates for class component' , ( ) => {
169
169
class Example extends React . Component {
170
170
state = { didRender : false } ;
@@ -199,7 +199,7 @@ describe('DebugTracing', () => {
199
199
] ) ;
200
200
} ) ;
201
201
202
- // @gate experimental && enableDebugTracing
202
+ // @gate experimental && build === 'development' && enableDebugTracing
203
203
it ( 'should log cascading layout updates' , ( ) => {
204
204
function Example ( ) {
205
205
const [ didMount , setDidMount ] = React . useState ( false ) ;
@@ -231,7 +231,7 @@ describe('DebugTracing', () => {
231
231
] ) ;
232
232
} ) ;
233
233
234
- // @gate experimental && enableDebugTracing
234
+ // @gate experimental && build === 'development' && enableDebugTracing
235
235
it ( 'should log cascading passive updates' , ( ) => {
236
236
function Example ( ) {
237
237
const [ didMount , setDidMount ] = React . useState ( false ) ;
@@ -256,7 +256,7 @@ describe('DebugTracing', () => {
256
256
] ) ;
257
257
} ) ;
258
258
259
- // @gate experimental && enableDebugTracing
259
+ // @gate experimental && build === 'development' && enableDebugTracing
260
260
it ( 'should log render phase updates' , ( ) => {
261
261
function Example ( ) {
262
262
const [ didRender , setDidRender ] = React . useState ( false ) ;
@@ -282,7 +282,7 @@ describe('DebugTracing', () => {
282
282
] ) ;
283
283
} ) ;
284
284
285
- // @gate experimental && enableDebugTracing
285
+ // @gate experimental && build === 'development' && enableDebugTracing
286
286
it ( 'should log when user code logs' , ( ) => {
287
287
function Example ( ) {
288
288
console . log ( 'Hello from user code' ) ;
0 commit comments