Skip to content

Commit 93d9c95

Browse files
committed
1 parent c20ad67 commit 93d9c95

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/mui-material/src/useMediaQuery/useMediaQuery.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,10 @@ describe('useMediaQuery', () => {
197197
);
198198
}
199199

200-
const { hydrate } = renderToString(<Test />);
200+
const { hydrate } = renderToString(<Test />, {
201+
// https://github.com/facebook/react/issues/26095
202+
strict: false,
203+
});
201204
hydrate();
202205
expect(screen.getByTestId('matches').textContent).to.equal('false');
203206
expect(getRenderCountRef.current()).to.equal(2);

0 commit comments

Comments
 (0)