@ohri/openmrs-esm-ohri-form-render-app
Version:
A Forms Rendering microfrontend for OpenMRS HIV Reference Implementation (OHRI)
16 lines (13 loc) • 396 B
text/typescript
import '@testing-library/jest-dom';
declare global {
interface Window {
openmrsBase: string;
spaBase: string;
}
}
const { getComputedStyle } = window;
window.getComputedStyle = (element) => getComputedStyle(element);
window.openmrsBase = '/openmrs';
window.spaBase = '/spa';
window.getOpenmrsSpaBase = () => '/openmrs/spa/';
window.HTMLElement.prototype.scrollIntoView = jest.fn();