fabasoad/business-card

View on GitHub
jest.config.json

Summary

Maintainability
Test Coverage
{
  "clearMocks": true,
  "collectCoverageFrom": [
    "**/*.{ts,tsx}",
    "!**/*.d.ts",
    "!**/node_modules/**"
  ],
  "coverageProvider": "v8",
  "coverageReporters": [
    "lcov", "text", "text-summary"
  ],
  "testEnvironment": "jsdom",
  "coverageThreshold": {
    "global": {
      "branches": 85,
      "functions": 80,
      "lines": 90,
      "statements": 90
    }
  },
  "moduleFileExtensions": ["ts", "tsx", "js"],
  "moduleNameMapper": {
    "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|pdf)$": "<rootDir>/src/__tests__/__mocks__/fileMock.ts",
    "\\.(css|scss)$": "<rootDir>/src/__tests__/__mocks__/styleMock.ts",
    "react-i18next": "<rootDir>/src/__tests__/__mocks__/react-i18next.tsx"
  },
  "setupFiles": [
    "raf/polyfill"
  ],
  "testPathIgnorePatterns": [
    ".*/TestUtils.spec.ts"
  ],
  "testRegex": "/src/__tests__/.*\\.(spec|test)\\.(ts|tsx|js)$",
  "transform": {
    "\\.(ts|tsx)$": "ts-jest"
  }
}