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

219
Views
How to avoid transforming test file in JS format?

My project is using ts-jest as jest preset and i have some legacy test file which are still in .js format. I have grouped them under test-backup folder but I would still want to run the test.

/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
  preset: 'ts-jest',
  testEnvironment: 'node',
  testPathIgnorePatterns: ['./node_modules/', '<rootDir>/dist/'],
  transformIgnorePatterns: ['<rootDir>/test-backup/.*/'],
};

I've defined transformIgnorePatterns but seems like these .js files are still being transformed and I'm getting TypeError, wondering if anyone can share some idea to go about this?

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!