@samitouri / QOS-React-2 / commits / 71964c0346

Fix CI (#18626)

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