aboutsummaryrefslogtreecommitdiff
path: root/setupTests.js
blob: 7658559cd3149575708791c9f3dc928d40213c41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 }
        }
    }
}