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?