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

217
Views
Override Mocha globals with Jest in directory

I have a repo where I am using cypress for E2E tests and Jest for unit/integration tests. The folder structure is similar to:

> src
    > utils
       time.ts
       time.spec.ts
> cypress

I am using jest for the tests in src and cypress is hard coded to use mocha

The current issue is - because cypress is exporting mocha as the default global for describe and expect - i have to explicitly import describe/expect from @jest/globals

Is there a config in either js, mocha or jest where i can specify only use mocha for cypress folder and jest for src folder?

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!