Closed KareyM closed 2 months ago
@KareyM this is not a bug. You need to mock the following API:s to solve the problem:
IntersectionObserver
matchMedia
resizeObserver
Feel free to grab the mocks that the core library embla-carousel
is using.
Best, David
Thank you!!
Which variants of Embla Carousel are you using?
Steps to reproduce
When writing test for the
EmblaCarousel
, i'm getting this error. Not sure what it is that's causing the issue. However, it seem to work just fine within the browserExpected Behavior
During a test, calling
EmblaCarousel
should behave the same work it does during the browserAdditional Context
I'm using the TS version of this and downloaded it through
yarn
What browsers are you seeing the problem on?
No response
Version
v8.0.2
CodeSandbox
No response
Before submitting