@kadconsulting/dry
Version:
KAD Reusable Component Library
16 lines • 511 B
JavaScript
import '@testing-library/jest-dom';
import '@testing-library/jest-dom/extend-expect';
/** MOCKS */
export const actualMatchMediaValue = window.matchMedia;
export const mockedMatchMediaValue = ({ matches }) => ({
writable: true,
value: jest.fn().mockImplementation((query) => ({
matches,
media: query,
onchange: null,
dispatchEvent: jest.fn(),
addEventListener: jest.fn(),
removeEventListener: jest.fn(),
})),
});
//# sourceMappingURL=jest.setup.js.map