@@ -12,13 +12,17 @@ module.exports = {
12
12
// cacheDirectory: "/var/folders/xp/bp966jvd70j25zc1cz6sd905psfs4r/T/jest_ueoec8",
13
13
14
14
// Automatically clear mock calls and instances between every test
15
- clearMocks : true ,
15
+ clearMocks : false ,
16
16
17
17
// Indicates whether the coverage information should be collected while executing the test
18
- collectCoverage : false ,
18
+ collectCoverage : true ,
19
19
20
20
// An array of glob patterns indicating a set of files for which coverage information should be collected
21
- // collectCoverageFrom: null,
21
+ collectCoverageFrom : [
22
+ '<rootDir>/src/**/*{js,ts,jsx,tsx}' ,
23
+ '!<rootDir>/src/**/*stories' ,
24
+ '!**/node_modules/**' ,
25
+ ] ,
22
26
23
27
// The directory where Jest should output its coverage files
24
28
coverageDirectory : 'coverage' ,
@@ -27,7 +31,7 @@ module.exports = {
27
31
coveragePathIgnorePatterns : [ '/node_modules/' , 'stories' ] ,
28
32
29
33
// A list of reporter names that Jest uses when writing coverage reports
30
- coverageReporters : [ 'json ' , 'text ' , 'lcov ' , 'clover ' ] ,
34
+ coverageReporters : [ 'lcov ' , 'clover ' , 'text ' , 'text-summary ' ] ,
31
35
32
36
// An object that configures minimum threshold enforcement for coverage results
33
37
// coverageThreshold: null,
0 commit comments