From b32b4024020de41b20038999e873409c90a69d4e Mon Sep 17 00:00:00 2001 From: Dennis Kigen Date: Sat, 18 May 2024 22:33:56 +0300 Subject: [PATCH] (chore) Restore OpenmrsDatePicker mock --- packages/framework/esm-framework/mock.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/framework/esm-framework/mock.tsx b/packages/framework/esm-framework/mock.tsx index de8d3f1ab..18eb35e8f 100644 --- a/packages/framework/esm-framework/mock.tsx +++ b/packages/framework/esm-framework/mock.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { NEVER } from 'rxjs'; import type {} from '@openmrs/esm-globals'; import * as utils from '@openmrs/esm-utils'; +import { OpenmrsDatePicker as realOpenmrsDatePicker } from './src'; window.i18next = { ...window.i18next, language: 'en' }; @@ -59,6 +60,7 @@ export const LeftNavMenu = jest.fn(() =>
Left Nav Menu
); export const setLeftNav = jest.fn(); export const unsetLeftNav = jest.fn(); export const ResponsiveWrapper = jest.fn(({ children }) => <>{children}); +export const OpenmrsDatePicker = jest.fn(realOpenmrsDatePicker); export const ErrorState = jest.fn(() =>
Error State
); export const CustomOverflowMenu = jest.fn(({ menuTitle, children }) => (