/** @type {import('../../../dist').JestConfigWithTsJest} */
module.exports = {
  displayName: 'babel-cjs-file',
  roots: ['<rootDir>', '<rootDir>/../__tests__/for-babel'],
  moduleNameMapper: {
    '@babel/core': '<rootDir>/../../../node_modules/@babel/core',
    'babel-jest': '<rootDir>/../../../node_modules/babel-jest',
  },
  transform: {
    '^.+.[tj]sx?$': [
      '<rootDir>/../../../legacy.js',
      {
        babelConfig: '<rootDir>/babel.config.cjs',
        isolatedModules: true,
      },
    ],
  },
}
