WebJamApps/JaMmusic

View on GitHub
jest.config.json

Summary

Maintainability
Test Coverage
{
  "testEnvironmentOptions":{
    "url": "http://localhost/"
  },
  "testEnvironment": "jsdom",
  "verbose": true,
  "fakeTimers": {
    "advanceTimers": 40,
    "doNotFake": [
      "Date",
      "hrtime",
      "nextTick",
      "performance",
      "queueMicrotask",
      "requestAnimationFrame",
      "cancelAnimationFrame",
      "requestIdleCallback",
      "cancelIdleCallback",
      "setImmediate",
      "clearImmediate",
      "setInterval",
      "clearInterval",
      "setTimeout",
      "clearTimeout"
    ],
    "enableGlobally": true,
    "legacyFakeTimers": false,
    "now": 1483228800000,
    "timerLimit": 1000
  },
  "testTimeout": 40000,
  "bail": true,
  "resetMocks": true,
  "notify": false,
  "setupFiles": [
    "<rootDir>/test/jest-pretest.ts"
  ],
  "moduleNameMapper": {
    "\\.(css|less|scss|sass)$": "identity-obj-proxy",
    "src/(.*)":"<rootDir>/src/$1",
    "test/(.*)":"<rootDir>/test/$1"
  },
  "moduleFileExtensions": [
    "js",
    "json",
    "jsx",
    "ts",
    "tsx"
  ],
  "testPathIgnorePatterns": [
    "/node_modules/",
    "/puppeteer/"
  ],
  "coverageProvider": "v8",
  "collectCoverageFrom": [
    "src/**/*.{js,jsx,ts,tsx}",
    "!src/Main.tsx",
    "!src/redux/store/index.ts"
  ],
  "collectCoverage": true,
  "transform": {
    "^.+\\.tsx?$": "ts-jest"
  },
  "globals": {
    "google": {}
  }
}