Skip to content

Commit

Permalink
fix(Progress reporter): don't prevent stryker from closing
Browse files Browse the repository at this point in the history
  • Loading branch information
nicojs committed Apr 3, 2018
1 parent df6169a commit 21255aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/stryker/src/reporters/ProgressAppendOnlyReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ export default class ProgressAppendOnlyReporter extends ProgressKeeper {

onAllMutantsMatchedWithTests(matchedMutants: ReadonlyArray<MatchedMutant>): void {
super.onAllMutantsMatchedWithTests(matchedMutants);
this.timer = new Timer();
this.intervalReference = setInterval(() => this.render(), 10000);
if (matchedMutants.length) {
this.timer = new Timer();
this.intervalReference = setInterval(() => this.render(), 10000);
}
}

onAllMutantsTested(): void {
Expand Down

0 comments on commit 21255aa

Please sign in to comment.