Skip to content

Instantly share code, notes, and snippets.

@barisbll
Created October 8, 2022 17:24
Show Gist options
  • Save barisbll/9d13009779f0b507a1deb919d297de81 to your computer and use it in GitHub Desktop.
Save barisbll/9d13009779f0b507a1deb919d297de81 to your computer and use it in GitHub Desktop.
Configuration of the jest file, comments excluded
export default {
clearMocks: true,
collectCoverage: true,
coverageDirectory: 'coverage',
coveragePathIgnorePatterns: [
'/node_modules/',
'/src/db/',
],
coverageProvider: 'v8',
coverageReporters: [
'json',
'text',
'lcov',
'clover',
],
moduleFileExtensions: [
'js',
'ts',
'tsx',
],
preset: 'ts-jest',
roots: [
'<rootDir>/src',
],
testEnvironment: 'node',
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment