Skip to content

Commit 71964c0

Browse files
author
Brian Vaughn
authored
1 parent 50b9f15 commit 71964c0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/react-reconciler/src/__tests__/DebugTracing-test.internal.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('DebugTracing', () => {
6969
expect(logs).toEqual([]);
7070
});
7171

72-
// @gate experimental && enableDebugTracing
72+
// @gate experimental && build === 'development' && enableDebugTracing
7373
it('should log sync render with suspense', async () => {
7474
const fakeSuspensPromise = Promise.resolve(true);
7575
function Example() {
@@ -96,7 +96,7 @@ describe('DebugTracing', () => {
9696
expect(logs).toEqual(['log: ⚛️ Example resolved']);
9797
});
9898

99-
// @gate experimental && enableDebugTracing
99+
// @gate experimental && build === 'development' && enableDebugTracing
100100
it('should log concurrent render with suspense', async () => {
101101
const fakeSuspensPromise = Promise.resolve(true);
102102
function Example() {
@@ -130,7 +130,7 @@ describe('DebugTracing', () => {
130130
expect(logs).toEqual(['log: ⚛️ Example resolved']);
131131
});
132132

133-
// @gate experimental && enableDebugTracing
133+
// @gate experimental && build === 'development' && enableDebugTracing
134134
it('should log cascading class component updates', () => {
135135
class Example extends React.Component {
136136
state = {didMount: false};
@@ -164,7 +164,7 @@ describe('DebugTracing', () => {
164164
]);
165165
});
166166

167-
// @gate experimental && enableDebugTracing
167+
// @gate experimental && build === 'development' && enableDebugTracing
168168
it('should log render phase state updates for class component', () => {
169169
class Example extends React.Component {
170170
state = {didRender: false};
@@ -199,7 +199,7 @@ describe('DebugTracing', () => {
199199
]);
200200
});
201201

202-
// @gate experimental && enableDebugTracing
202+
// @gate experimental && build === 'development' && enableDebugTracing
203203
it('should log cascading layout updates', () => {
204204
function Example() {
205205
const [didMount, setDidMount] = React.useState(false);
@@ -231,7 +231,7 @@ describe('DebugTracing', () => {
231231
]);
232232
});
233233

234-
// @gate experimental && enableDebugTracing
234+
// @gate experimental && build === 'development' && enableDebugTracing
235235
it('should log cascading passive updates', () => {
236236
function Example() {
237237
const [didMount, setDidMount] = React.useState(false);
@@ -256,7 +256,7 @@ describe('DebugTracing', () => {
256256
]);
257257
});
258258

259-
// @gate experimental && enableDebugTracing
259+
// @gate experimental && build === 'development' && enableDebugTracing
260260
it('should log render phase updates', () => {
261261
function Example() {
262262
const [didRender, setDidRender] = React.useState(false);
@@ -282,7 +282,7 @@ describe('DebugTracing', () => {
282282
]);
283283
});
284284

285-
// @gate experimental && enableDebugTracing
285+
// @gate experimental && build === 'development' && enableDebugTracing
286286
it('should log when user code logs', () => {
287287
function Example() {
288288
console.log('Hello from user code');

0 commit comments

Comments
 (0)