From 33d2861aeacbce12044678b6c653bf9ca4cb12a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Hassan?= Date: Fri, 24 May 2024 14:53:36 +0200 Subject: [PATCH] fix: unite test fix --- packages/sn-editor-react/test/editor.test.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) 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()