<reponame>chrismphilp/blog<filename>jestconfig.json
{
  "verbose": true,
  "transform": {
    "^.+\\.(t|j)sx?$": "ts-jest"
  },
  "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
  "transformIgnorePatterns": [
    "<rootDir>/node_modules/(?!react-icons)"
  ],
  "moduleFileExtensions": [
    "ts",
    "tsx",
    "js",
    "jsx",
    "json",
    "node",
    ".jpg"
  ],
  "moduleNameMapper": {
    "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/assetsTransformer.js",
    "\\.(css|less)$": "<rootDir>/test/assetsTransformer.js"
  }
}