hmpps-open-layers-map
Version:
A native Web Component for displaying maps using OpenLayers.
14 lines (13 loc) • 388 B
JavaScript
import '@testing-library/jest-dom';
/* eslint-disable no-empty-function */
class ResizeObserver {
observe() { }
unobserve() { }
disconnect() { }
}
global.ResizeObserver = ResizeObserver;
// Suppress console output during tests
beforeAll(() => {
jest.spyOn(console, 'warn').mockImplementation(() => { });
jest.spyOn(console, 'error').mockImplementation(() => { });
});