vueuse / motion

๐Ÿคน Vue Composables putting your components in motion
https://motion.vueuse.org
MIT License
2.27k stars 79 forks source link

test: fix component visibility variants test #188

Closed BobbieGoede closed 5 months ago

BobbieGoede commented 5 months ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

This adds a mocked intersection observer and fixes the visibility variants tests, these tests further depend on onComplete being called per animated property which I will look into later.

When I have time I'll see if I can add some documentation for the components and recommend it over the directive usage for SSR projects.

We should probably publish a new release after adding documentation and possibly changing the onComplete behaviour.

๐Ÿ“ Checklist