jest.config.js 427 B

1234567891011121314151617181920
  1. module.exports = {
  2. collectCoverage: false,
  3. moduleFileExtensions: [
  4. "ts",
  5. "tsx",
  6. "js",
  7. "jsx",
  8. "json",
  9. "node",
  10. ],
  11. testPathIgnorePatterns: [
  12. "<rootDir>/lib/",
  13. "<rootDir>/node_modules/",
  14. ],
  15. // Accept anything called .(spec|test).[js]jx? in __tests__ or root (or /lib).
  16. testRegex: "(/__tests__/.*|(\\.|/)(spec|test))\\.(jsx?|tsx?)$",
  17. transform: {
  18. "^.+\\.tsx?$": "ts-jest",
  19. }
  20. };