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

89
Views
Testing Moment in React Enzyme Jest

I am Using React, Formick and material UI

The UI functionality is working fine, I need to write test case for Formik handle Submit. so I wrote the formk test case as usual, but not what is happening is i am using picker and i am getting date in Friday, February 5, 2016 at 9:00:00 pm UTC to convert i am using Moment and i am able to verify it in UI and is working fine but as soon as i try to test the same it says moment is not a function. what i am doing wrong? I want to use moment only for conversion as it is being used in my application need a way to test it in jest ezyme

https://codesandbox.io/s/competent-thompson-s075hi?file=/src/app.test.js

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!