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

186
Views
How Can I Use moduleNameMapper in Jest to Point to a Dependancy When Using Yarn 2?

I am currently working on a Typescript project that has unit tests defined utilising Jest. The project uses Yarn 2 for execution but the tests have a dependancy which requires utilisation of moduleNameMapper in the jest.config.js.

As Yarn 2 works without any installs in node_modules, how can I use moduleNameMapper to point to a dependancy? Is there a new mapping required or some new Jest specific functionality?

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!