mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-25 11:17:50 +01:00
8 lines
208 B
TypeScript
8 lines
208 B
TypeScript
import 'whatwg-fetch'
|
|
import 'jest-canvas-mock'
|
|
|
|
window.scrollTo = jest.fn()
|
|
window.matchMedia = jest.fn(
|
|
() => ({ matches: false, addListener: jest.fn(), removeListener: jest.fn() } as MediaQueryList)
|
|
)
|