blakeblackshear.frigate/web/config/setupTests.js

15 lines
343 B
JavaScript
Raw Normal View History

2021-02-09 20:35:33 +01:00
import 'regenerator-runtime/runtime';
import '@testing-library/jest-dom/extend-expect';
Object.defineProperty(window, 'matchMedia', {
writable: true,
value: (query) => ({
matches: false,
media: query,
onchange: null,
addEventListener: jest.fn(),
removeEventListener: jest.fn(),
dispatchEvent: jest.fn(),
}),
});