You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
799 B

  1. module.exports = {
  2. roots: ['<rootDir>/packages'],
  3. testEnvironment: 'jsdom',
  4. testMatch: ['**/(*.)+(spec|test).+(ts|js|tsx)'],
  5. transform: {
  6. '^.+\\.tsx?$': 'ts-jest',
  7. '^.+\\.js$': 'ts-jest',
  8. },
  9. globals: {
  10. 'ts-jest': {
  11. tsconfig: '<rootDir>/tsconfig.json',
  12. },
  13. },
  14. moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
  15. moduleNameMapper: {
  16. '^.+\\.(css|less)$': '<rootDir>/tests/utils/stylesMock.js',
  17. },
  18. transformIgnorePatterns: ['node_modules/(?!(html-void-elements)/)'],
  19. setupFilesAfterEnv: ['<rootDir>/tests/setup/index.ts'],
  20. collectCoverageFrom: ['<rootDir>/packages/**/src/**/*.(ts|tsx)'],
  21. coveragePathIgnorePatterns: [
  22. 'dist',
  23. 'locale',
  24. 'index.ts',
  25. 'config.ts',
  26. 'browser-polyfill.ts',
  27. 'node-polyfill.ts',
  28. ],
  29. }