const path = require('path');

module.exports = {
  rootDir: path.resolve(__dirname, '../..'),
  moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
  moduleDirectories: ['node_modules', '<rootDir>/src', '<rootDir>'],
  testRegex: String.raw`.*/__tests__/.*\.test\.(j|t)s$`,
  transform: {
    [String.raw`^.*\.tsx?$`]: 'ts-jest',
    [String.raw`^.*\.jsx?$`]: 'babel-jest',
  },
  collectCoverageFrom: ['<rootDir>/src/**/*.{js,jsx,ts,tsx}'],
  coverageReporters: ['text-lcov'],
};

const path = require('path');

module.exports = {
  rootDir: path.resolve(__dirname, '../..'),
  moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
  moduleDirectories: ['node_modules', '<rootDir>/src', '<rootDir>'],
  testRegex: String.raw`.*/__tests__/.*\.test\.(j|t)s$`,
  transform: {
    [String.raw`^.*\.tsx?$`]: 'ts-jest',
    [String.raw`^.*\.jsx?$`]: 'babel-jest',
  },
  collectCoverageFrom: [
    '<rootDir>/src/**/*.{js,jsx,ts,tsx}',
    '!**/__tests__/**/*',
    '!**/__mocks__/**/*',
    '!**/__snapshots__/**/*',
  ],
  coverageReporters: ['text-lcov'],
};

Add some extra ecludes for coverage collection
Add some extra ecludes for coverage collection
