module.exports = {
  // transform: {
  //     "\\.js$": "<rootDir>/node_modules/babel-jest" // Use <rootDir> .
  //  },
  // transform: {
  //     "^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest"
  //   },
  transform: {
    "\\.tsx?$": "ts-jest",
    "\\.jsx?$": "babel-jest" // if you have jsx tests too
  },
  clearMocks: true,
  coverageDirectory: "coverage",
  testEnvironment: "node",
  // testMatch: ["**/?(*.)+(test).ts?(x)"],
  testRegex: "/src/__tests__/.*\\.test?\\.(ts|tsx)$",
  moduleFileExtensions: ["ts", "js", "tsx", "jsx"],
  modulePaths: ["<rootDir>/src/__tests__"],
  globals: {
    "ts-jest": {
      tsConfig: "<rootDir>/tsconfig.json"
    }
  }
};
