mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-30 19:41:46 +01:00
7f302b8e72
* Add dark mode * Update UI snapshots * Mock `matchMedia` in Jest tests
6 lines
151 B
TypeScript
6 lines
151 B
TypeScript
import 'whatwg-fetch'
|
|
import 'jest-canvas-mock'
|
|
|
|
window.scrollTo = jest.fn()
|
|
window.matchMedia = jest.fn(() => ({ matches: false } as MediaQueryList))
|