1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
Object.defineProperty(window, 'matchMedia', { writable: true, value: jest.fn().mockImplementation((query) => ({ matches: false, media: query, onchange: null, addListener: jest.fn(), // deprecated removeListener: jest.fn(), // deprecated addEventListener: jest.fn(), removeEventListener: jest.fn(), dispatchEvent: jest.fn(), })), }); export {}; ilippot.eu/www.armandphilippot.com' title='www.armandphilippot.com Git repository'/>