Mock “isIntersecting” from Intersection Observer in Jest

后端 未结 0 808
时光说笑
时光说笑 2020-12-10 00:33

I have a component using intersection observer and want to test in a jest test the effects if the element is intersecting. I already managed to mock the Intersection Observe

相关标签:
回答
  • 消灭零回复
提交回复
热议问题