Skip to content

Commit 561df27

Browse files
committed
test(@angular-devkit/build-angular): disable html karma coverage reporter
Under bazel this causes the below error. ``` Unexpected error while generating coverage report. [Error: EEXIST: file already exists, mkdir ```
1 parent 4b529fe commit 561df27

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/angular_devkit/build_angular/src/builders/karma/tests/behavior/code-coverage_spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ describeBuilder(execute, KARMA_BUILDER_INFO, (harness) => {
8888
});
8989

9090
it('should remapped instrumented code back to the original source', async () => {
91+
await harness.modifyFile('karma.conf.js', (content) => content.replace('lcov', 'html'));
92+
9193
await harness.modifyFile('src/app/app.component.ts', (content) => {
9294
return content.replace(
9395
`title = 'app'`,

packages/angular_devkit/build_angular/test/hello-world-app/karma.conf.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ module.exports = function(config) {
3333
dir: path.join(__dirname, './coverage'),
3434
subdir: '.',
3535
reporters: [
36-
{type: 'html'},
3736
{type: 'lcov'},
3837
],
3938
},

0 commit comments

Comments
 (0)