Skip to content

Commit ef81780

Browse files
committed
test: fix DialogManagerContext.test.js import react-dom/server.node
1 parent 79ff330 commit ef81780

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Dialog/__tests__/DialogManagerContext.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import { act, fireEvent, render, screen, waitFor } from '@testing-library/react';
3-
import { renderToStaticMarkup } from 'react-dom/server';
43
import {
54
DialogManagerProvider,
65
useDialogManager,
@@ -13,6 +12,8 @@ jest.mock('../../../components/Dialog/DialogPortal', () => ({
1312
DialogPortalDestination: () => null,
1413
}));
1514

15+
const { renderToStaticMarkup } = require('react-dom/server.node');
16+
1617
const TEST_IDS = {
1718
CLOSE_DIALOG: 'close-dialog',
1819
DIALOG_COUNT: 'dialog-count',

0 commit comments

Comments
 (0)