File tree 3 files changed +49
-160
lines changed
packages/angular_devkit/build_angular
src/angular-cli-files/models/webpack-configs
3 files changed +49
-160
lines changed Original file line number Diff line number Diff line change 23
23
"caniuse-lite" : " 1.0.30001019" ,
24
24
"circular-dependency-plugin" : " 5.2.0" ,
25
25
"clean-css" : " 4.2.1" ,
26
+ "coverage-istanbul-loader" : " 2.0.3" ,
26
27
"copy-webpack-plugin" : " 5.1.1" ,
27
28
"core-js" : " 3.6.2" ,
28
29
"file-loader" : " 5.0.2" ,
29
30
"find-cache-dir" : " 3.2.0" ,
30
31
"glob" : " 7.1.6" ,
31
- "istanbul-instrumenter-loader" : " 3.0.1" ,
32
32
"jest-worker" : " 24.9.0" ,
33
33
"karma-source-map-support" : " 1.4.0" ,
34
34
"less" : " 3.10.3" ,
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ export function getTestConfig(
20
20
const extraRules : webpack . Rule [ ] = [ ] ;
21
21
const extraPlugins : webpack . Plugin [ ] = [ ] ;
22
22
23
- // if (buildOptions.codeCoverage && CliConfig.fromProject()) {
24
23
if ( buildOptions . codeCoverage ) {
25
24
const codeCoverageExclude = buildOptions . codeCoverageExclude ;
26
25
const exclude : ( string | RegExp ) [ ] = [
@@ -39,7 +38,7 @@ export function getTestConfig(
39
38
40
39
extraRules . push ( {
41
40
test : / \. ( j s x ? | t s x ? ) $ / ,
42
- loader : require . resolve ( 'istanbul-instrumenter -loader' ) ,
41
+ loader : require . resolve ( 'coverage-istanbul -loader' ) ,
43
42
options : { esModules : true } ,
44
43
enforce : 'post' ,
45
44
exclude,
You can’t perform that action at this time.
0 commit comments