module.exports = {
  preset: 'ts-jest',
  testEnvironment: 'node',
  testMatch: [
    "**/__tests__/**/*.(ts|tsx|js)"
  ],
  "roots": [
    "<rootDir>/src"
  ],
  "testPathIgnorePatterns": [
    "build"
  ],
  "setupFilesAfterEnv": [
    "<rootDir>/src/testUtils/setupTests.ts"
  ],
  "moduleNameMapper": {
    "~/(.*)": "<rootDir>/src/$1",
    "\\.(css|scss)$": "<rootDir>/config/cssTransform.js"
  },
  "collectCoverageFrom": [
    "src/**/*.{ts,tsx,mjs}"
  ],
  "coverageDirectory": "<rootDir>/coverage/",
  "coverageReporters": [
    "lcov"
  ],
  "reporters": [
    "default",
    [ "jest-junit", { outputDirectory: '<rootDir>/coverage/' } ]
  ],
  "transform": {
    "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/config/fileTransform.js"
  },
  globals: {
    'ts-jest': {
      isolatedModules: true
    }
  }
};