mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-27 16:26: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)
|
|
)
|