diff --git a/packages/sn-editor-react/test/editor.test.tsx b/packages/sn-editor-react/test/editor.test.tsx index 9fac49803..e78b27dea 100644 --- a/packages/sn-editor-react/test/editor.test.tsx +++ b/packages/sn-editor-react/test/editor.test.tsx @@ -8,6 +8,17 @@ import { Editor } from '../src/components/editor' import { MenuBar } from '../src/components/menu-bar' import { defaultLocalization } from '../src/context' +jest.mock('react-monaco-editor', () => + jest.fn((props) => { + console.log(props) + return ( +
+ {props.value} +
+ ) + }), +) + describe('editor', () => { it('should be rendered properly', () => { const wrapper = shallow()