@@ -50,12 +50,13 @@ class CoverageLine {
50
50
}
51
51
52
52
class TestCoverage {
53
- constructor ( coverageDirectory , originalCoverageDirectory , workingDirectory , excludeGlobs , includeGlobs ) {
53
+ constructor ( coverageDirectory , originalCoverageDirectory , workingDirectory , excludeGlobs , includeGlobs , thresholds ) {
54
54
this . coverageDirectory = coverageDirectory ;
55
55
this . originalCoverageDirectory = originalCoverageDirectory ;
56
56
this . workingDirectory = workingDirectory ;
57
57
this . excludeGlobs = excludeGlobs ;
58
58
this . includeGlobs = includeGlobs ;
59
+ this . thresholds = thresholds ;
59
60
}
60
61
61
62
#sourceLines = new SafeMap ( ) ;
@@ -142,6 +143,7 @@ class TestCoverage {
142
143
coveredBranchPercent : 0 ,
143
144
coveredFunctionPercent : 0 ,
144
145
} ,
146
+ thresholds : this . thresholds ,
145
147
} ;
146
148
147
149
if ( ! coverage ) {
@@ -497,6 +499,12 @@ function setupCoverage(options) {
497
499
cwd ,
498
500
options . coverageExcludeGlobs ,
499
501
options . coverageIncludeGlobs ,
502
+ {
503
+ __proto__ : null ,
504
+ line : options . lineCoverage ,
505
+ branch : options . branchCoverage ,
506
+ function : options . functionCoverage ,
507
+ } ,
500
508
) ;
501
509
}
502
510
0 commit comments