We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7752d3e commit b9a7c2aCopy full SHA for b9a7c2a
packages/code-editor/src/Panel/Panel.spec.tsx
@@ -7,13 +7,19 @@ import { PanelProps } from './Panel.types';
7
8
// Mock Modal component to avoid HTMLDialogElement issues
9
jest.mock('@leafygreen-ui/modal', () => {
10
- return function MockModal({ children, open, ...props }: any) {
+ const MockModal = function ({ children, open, ...props }: any) {
11
return open ? (
12
<div data-testid="mock-modal" {...props}>
13
{children}
14
</div>
15
) : null;
16
};
17
+
18
+ return {
19
+ __esModule: true,
20
+ default: MockModal,
21
+ Modal: MockModal,
22
+ };
23
});
24
25
const TestIcon = () => <div data-testid="test-icon" />;
0 commit comments