You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
350 B
15 lines
350 B
// @ts-ignore |
|
export default global.matchMedia = |
|
global.matchMedia || |
|
function (query) { |
|
return { |
|
matches: false, |
|
media: query, |
|
onchange: null, |
|
addListener: jest.fn(), |
|
removeListener: jest.fn(), |
|
addEventListener: jest.fn(), |
|
removeEventListener: jest.fn(), |
|
dispatchEvent: jest.fn(), |
|
}; |
|
};
|
|
|