text: module.exports = {
    roots: ["<rootDir>/src"],
    transform: {
      "^.+\\.tsx?$": "ts-jest",
      "^.+\\.jsx?$": "babel-jest"
    },
    testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
    moduleFileExtensions: [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json",
      "node"
    ],
    collectCoverage: true,
    collectCoverageFrom: ['src/**/{!(index),}.{ts,tsx}'],
    coverageDirectory: 'coverage',
    coverageThreshold: {
      global: {
        branches: 20,
        functions: 30,
        lines: 50,
        statements: 50
      }
    },
    setupFiles: ['<rootDir>/enzyme.config.js'],
    testEnvironment: 'jsdom',
    testPathIgnorePatterns: ['\\\\node_modules\\\\'],
    testURL: 'http://localhost',
    transformIgnorePatterns: ['<rootDir>/node_modules/'],
    snapshotSerializers: ['enzyme-to-json/serializer'],
    verbose: false,
    reporters: [
      'default',
      ['./node_modules/jest-html-reporter', {
        pageTitle: 'Test Report'
      }]
    ],
    moduleNameMapper: {
      '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/assetsTransformer.js',
      '@app/components(.*)$': '<rootDir>/src/components/index.tsx',
      '@app/help(.*)$': '<rootDir>/src/constants/index.tsx',
      '@app/interfaces(.*)$': '<rootDir>/src/dev-utils/index.tsx'
    }
  };