UNPKG

lism

Version:

Collection of TypeScript Utilities to help developers streamline their coding workflow.

16 lines (13 loc) 380 B
// @see https://github.com/testing-library/jest-dom#usage import '@testing-library/jest-dom'; Object.defineProperty(window, 'matchMedia', { writable: true, value: jest.fn().mockImplementation((query) => ({ matches: false, media: query, onchange: null, addEventListener: jest.fn(), removeEventListener: jest.fn(), dispatchEvent: jest.fn(), })), });