Skip to content

Commit aef565f

Browse files
committed
Gate enableRenderableContext
1 parent e6e1912 commit aef565f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,8 +947,11 @@ describe('ReactLazy', () => {
947947
</Suspense>,
948948
);
949949
await waitForThrow(
950-
'Element type is invalid. Received a promise that resolves to: Context.Provider. ' +
951-
'Lazy element type must resolve to a class or function.',
950+
gate('enableRenderableContext')
951+
? 'Element type is invalid. Received a promise that resolves to: Context.Provider. ' +
952+
'Lazy element type must resolve to a class or function.'
953+
: 'Element type is invalid. Received a promise that resolves to: Context.Consumer. ' +
954+
'Lazy element type must resolve to a class or function.',
952955
);
953956
});
954957

0 commit comments

Comments
 (0)