{
  "preset": "ts-jest",
  "testEnvironment": "jsdom",
  "testMatch": [
    "<rootDir>/tests/**/*.spec.{ts,tsx}",
    "<rootDir>/tests/**/*.test.{ts,tsx}"
  ],
  "collectCoverageFrom": [
    "src/**/*.{ts,tsx}",
    "!src/**/*.d.ts",
    "!src/**/index.{ts,tsx}",
    "!src/**/*.stories.{ts,tsx}"
  ],
  "coverageDirectory": "coverage",
  "coverageReporters": ["text", "lcov", "html"],
  "testPathIgnorePatterns": [
    "/node_modules/",
    "/dist/",
    "/coverage/"
  ],
  "transform": {
    "^.+\\.(ts|tsx)$": "ts-jest",
    "^.+\\.(js|jsx)$": "babel-jest"
  },
  "transformIgnorePatterns": [
    "/node_modules/(?!(swiper|@tarojs)/)"
  ],
  "moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json"]
}
