Skip to content

Commit c776f1c

Browse files
committed
Fix test in non-dev builds
1 parent 4262127 commit c776f1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-client/src/__tests__/ReactFlight-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3899,7 +3899,9 @@ describe('ReactFlight', () => {
38993899
await act(async () => {
39003900
const {root} = await ReactNoopFlightClient.read(transport);
39013901
ReactNoop.render(root);
3902-
expect(getDebugInfo(root)).toBeNull();
3902+
if (__DEV__) {
3903+
expect(getDebugInfo(root)).toBeNull();
3904+
}
39033905
});
39043906
});
39053907
});

0 commit comments

Comments
 (0)