Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

105
Views
how to use getAnimations in my library without breaking consumers tests?

I am developing a react components library. For some components, I am using getAnimations. As a result, tests are failing for consumers of my library, since the test environment does not have getAnimations defined.

I know that in an ideal world, you would expect the consumers to simply mock my components, but it's a hassle you'd not expect a component library to force you to endure. Plus, it imposes a bigger problem when it comes to E2E/Automations.

What is the best practice in this case? Maybe I should provide a "polyfill" along with my library?

Thanks!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!