0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/jest.setup.ts
Marius Andra 6ba92b4766
feat(frontend): use lottie for animation (#9904)
* add lottie-react

* test loading states

* add new animations

* adopt the laptophog as the loadinghog

* handle opacity via a class

* move all lottiefiles to lib/animations

* new animation component

* add storybook

* use sportshog and laptophog animations for loading

* jest also wants to ignore these files

* clarify text

* support canvas in jsdom / jest

* add width/height to animations

* clarify

* use a mocked canvas instead of installing new debian packages to get this to compile

* I posted a wrong answer on the internet

Co-authored-by: Michael Matloka <dev@twixes.com>
2022-06-06 12:50:13 +02:00

5 lines
77 B
TypeScript

import 'whatwg-fetch'
import 'jest-canvas-mock'
window.scrollTo = jest.fn()