Skip to content

Commit

Permalink
(chore) Export actual ConfigurableLink implementation from mock (open…
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen authored May 24, 2024
1 parent a4fe360 commit 2fb9ee7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/framework/esm-react-utils/mock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import { configSchema } from '@openmrs/esm-config/mock';
import { getExtensionStore, getExtensionInternalStore } from '@openmrs/esm-extensions/mock';
import { createGlobalStore } from '@openmrs/esm-state/mock';
import { usePagination as realUsePagination } from './src/index';
export { isDesktop, useStore, useStoreWithActions, createUseStore } from './src/index';
export { ConfigurableLink, isDesktop, useStore, useStoreWithActions, createUseStore } from './src/index';
import * as utils from '@openmrs/esm-utils';

export const ConfigurableLink = ({ to, children }) => <a href={to}>{children}</a>;

export const ComponentContext = React.createContext(null);

export const openmrsComponentDecorator = jest.fn().mockImplementation(() => (component) => component);
Expand Down

0 comments on commit 2fb9ee7

Please sign in to comment.