Not sure if i'm missing something or if I'm doing something incorrect. But I'm trying to run simple unit tests with Jest and Enzyme on my component that uses gsap for a search input box. The component works perfectly fine, animation is great too. But whenever i run my tests, and specifically this line
Jest, Enzyme and GSAP
in GSAP
Posted
Hi all,
Not sure if i'm missing something or if I'm doing something incorrect. But I'm trying to run simple unit tests with Jest and Enzyme on my component that uses gsap for a search input box. The component works perfectly fine, animation is great too. But whenever i run my tests, and specifically this line
i get ERROR CANNOT TWEEN A NULL TARGET
the close button calls this function below:
animation.hideSearch is:
And finally here is my search input:
Is there anything i need to configure in order to get jest to ignore the gsap animation?
Any help is appreciated. thanks!