import '@testing-library/jest-dom' if (typeof window !== 'undefined') { window.matchMedia = window.matchMedia || function() { return { matches: true, media: '', addListener: function() { return true }, removeListener: function() { return true }, addEventListener: function() { return true }, removeEventListener: function() { return true }, dispatchEvent: function() { return true }, onchange: function() { return true } } } }