Skip to content

Commit

Permalink
demonstration of the bug with the coverage for products:test
Browse files Browse the repository at this point in the history
  • Loading branch information
bulldog98 committed Sep 20, 2022
1 parent 187bbad commit ea8aa29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/products/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
"executor": "@nrwl/jest:jest",
"options": {
"jestConfig": "apps/products/jest.config.ts",
"passWithNoTests": true
"passWithNoTests": true,
"coverage": true
},
"outputs": ["coverage/apps/products"]
},
Expand Down
7 changes: 6 additions & 1 deletion apps/products/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component } from '@angular/core';
import { Router } from '@angular/router';

import '@nx-example/shared/header';

Expand All @@ -7,4 +8,8 @@ import '@nx-example/shared/header';
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {}
export class AppComponent {
constructor(router: Router) {
console.log(router.url)
}
}

0 comments on commit ea8aa29

Please sign in to comment.