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