From 1f59f11737b79d9fd6d4ccda5a83bc93a1a203ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Hassan?= Date: Fri, 24 Nov 2023 16:18:44 +0100 Subject: [PATCH] more unit test fixes --- .../test/{mocks => __mocks__}/react-monaco-editor.tsx | 0 .../test/__mocks__/react-monaco-editor.tsx | 10 ++++++++++ .../test/{_mocks_ => __mocks__}/test_contents.ts | 0 3 files changed, 10 insertions(+) rename examples/sn-react-calendar/test/{mocks => __mocks__}/react-monaco-editor.tsx (100%) create mode 100644 examples/sn-react-usersearch/test/__mocks__/react-monaco-editor.tsx rename examples/sn-react-usersearch/test/{_mocks_ => __mocks__}/test_contents.ts (100%) diff --git a/examples/sn-react-calendar/test/mocks/react-monaco-editor.tsx b/examples/sn-react-calendar/test/__mocks__/react-monaco-editor.tsx similarity index 100% rename from examples/sn-react-calendar/test/mocks/react-monaco-editor.tsx rename to examples/sn-react-calendar/test/__mocks__/react-monaco-editor.tsx diff --git a/examples/sn-react-usersearch/test/__mocks__/react-monaco-editor.tsx b/examples/sn-react-usersearch/test/__mocks__/react-monaco-editor.tsx new file mode 100644 index 000000000..a55e36fa7 --- /dev/null +++ b/examples/sn-react-usersearch/test/__mocks__/react-monaco-editor.tsx @@ -0,0 +1,10 @@ +import * as React from 'react' +/** + * This is a mock MonacoEditor component for testing purposes. + * It simply renders an empty div. + * + * @returns {JSX.Element} An empty div. + */ +export default function MonacoEditor(): JSX.Element { + return
+} diff --git a/examples/sn-react-usersearch/test/_mocks_/test_contents.ts b/examples/sn-react-usersearch/test/__mocks__/test_contents.ts similarity index 100% rename from examples/sn-react-usersearch/test/_mocks_/test_contents.ts rename to examples/sn-react-usersearch/test/__mocks__/test_contents.ts