var config = require('./jest.config');

config.testRegex = '/*/.*.(test|spec|snap).(js|ts|tsx)?$';

config.setupFilesAfterEnv = ['./__tests__/testSetup.ts'];

// Indicates whether the coverage information should be collected while executing the test
config.collectCoverage = true;

// An array of glob patterns indicating a set of files for which coverage information should be collected
config.collectCoverageFrom = ['src/**/*.{ts,tsx}', '__test__', '!__test__/helpers/**/*', '!__test__/testSetup.ts', '!src/polyfill.ts', '!src/types/**/*', '!src/lib/**/*', '!src/css/**/*'];

// The directory where Jest should output its coverage files
config.coverageDirectory = 'coverage';

// A list of reporter names that Jest uses when writing coverage reports
config.coverageReporters = ['json', 'text'],

// An object that configures minimum threshold enforcement for coverage results
config.coverageThreshold = null,

// An array of regexp pattern strings used to skip coverage collection
config.coveragePathIgnorePatterns = ['/node_modules/'];

// Force coverage collection from ignored files usin a array of glob patterns
// forceCoverageMatch: [],

console.log('RUNNING COVERAGE')
module.exports = config
