0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-30 19:41:46 +01:00
posthog/jest.setup.ts
Michael Matloka 7f302b8e72
feat(3000): Add dark mode (#14821)
* Add dark mode

* Update UI snapshots

* Mock `matchMedia` in Jest tests
2023-03-20 15:52:12 +01:00

6 lines
151 B
TypeScript

import 'whatwg-fetch'
import 'jest-canvas-mock'
window.scrollTo = jest.fn()
window.matchMedia = jest.fn(() => ({ matches: false } as MediaQueryList))