jest.config.js 610 B

123456789101112131415
  1. module.exports = {
  2. collectCoverageFrom: [
  3. '<rootDir>/src/Components/**/*.{jsx, tsx}',
  4. '<rootDir>/src/App.{jsx, tsx}',
  5. ],
  6. coverageReporters: ['html', 'text', 'text-summary', 'cobertura'],
  7. moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
  8. preset: 'react-native',
  9. setupFiles: ['./node_modules/react-native-gesture-handler/jestSetup.js'],
  10. setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
  11. testMatch: ['**/*.test.ts?(x)', '**/*.test.js?(x)'],
  12. transformIgnorePatterns: [
  13. 'node_modules/(?!(jest-)?react-native|@react-native|@react-native-community|@react-navigation|ky)',
  14. ],
  15. };