module.exports = {
  rootDir: '../../..',
  moduleNameMapper: {
    '^mockdate$': '<rootDir>/debian/tests/test_modules/mockdate',
    '^\\.\\./src$': '<rootDir>/dist/cjs/index.js',
    '^\\.\\./src/(.*)$': '<rootDir>/dist/cjs/$1.js',
    '^\\.\\./\\.\\./src$': '<rootDir>/dist/cjs/index.js',
    '^\\.\\./\\.\\./src/(.*)$': '<rootDir>/dist/cjs/$1.js',
  },
  modulePathIgnorePatterns: [
    '<rootDir>/debian/(node-rrule|libjs-rrule|tmp)/',
  ],
  setupFiles: ['<rootDir>/debian/tests/pkg-js/jest.setup.js'],
  testEnvironment: 'node',
  testMatch: ['<rootDir>/test/**/*.test.ts'],
  transform: {
    '^.+\\.tsx?$': [
      '/usr/share/nodejs/ts-jest/dist/index.js',
      {
        diagnostics: false,
        isolatedModules: true,
      },
    ],
  },
}
