0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-27 16:26:50 +01:00
posthog/jest.setup.ts
2023-08-16 15:06:09 +01:00

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)
)