Skip to content

Commit 358e960

Browse files
committed
Gate tests
We don't warn for the www entry point.
1 parent d142b8c commit 358e960

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-dom/src/__tests__/ReactDOMRoot-test.js

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ describe('ReactDOMRoot', () => {
4747
expect(container.textContent).toEqual('Hi');
4848
});
4949

50+
// @gate !www
5051
it('warns if you import createRoot from react-dom', async () => {
5152
expect(() => ReactDOM.createRoot(container)).toErrorDev(
5253
'You are importing createRoot from "react-dom" which is not supported. ' +
@@ -57,6 +58,7 @@ describe('ReactDOMRoot', () => {
5758
);
5859
});
5960

61+
// @gate !www
6062
it('warns if you import hydrateRoot from react-dom', async () => {
6163
expect(() => ReactDOM.hydrateRoot(container, null)).toErrorDev(
6264
'You are importing hydrateRoot from "react-dom" which is not supported. ' +

0 commit comments

Comments
 (0)