Created
February 10, 2021 19:39
-
-
Save jordan112/61c896d6e6fcac3f66ae110d1ef29099 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable max-len */ | |
// For a detailed explanation regarding each configuration property, visit: | |
// https://jestjs.io/docs/en/configuration.html | |
module.exports = { | |
// Indicates whether the coverage information should be collected while executing the test | |
collectCoverage: false, | |
// An array of glob patterns indicating a set of files for which coverage information should be collected | |
collectCoverageFrom: ['**/src/**/*.{js,ts}'], | |
// The directory where Jest should output its coverage files | |
coverageDirectory: 'coverage', | |
// An array of regexp pattern strings used to skip coverage collection | |
coveragePathIgnorePatterns: [ | |
'environmentHelper.js', | |
], | |
// Indicates which provider should be used to instrument code for coverage | |
coverageProvider: 'v8', | |
// A list of reporter names that Jest uses when writing coverage reports | |
coverageReporters: [ | |
// "json", | |
// "text", | |
// "lcov", | |
// "clover" | |
'html', | |
], | |
// An object that configures minimum threshold enforcement for coverage results | |
coverageThreshold: { | |
global: { | |
functions: 80, | |
lines: 80, | |
statements: 80, | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment