Skip to content

Commit

Permalink
sync coverage state on run request
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Nov 29, 2024
1 parent 79be746 commit d4d566a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/addons/test/src/node/test-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ export class TestManager {
if (payload.providerId !== TEST_PROVIDER_ID) {
return;
}
if (payload.config && this.coverage !== payload.config.coverage) {
this.coverage = payload.config.coverage;
}

const allTestsRun = (payload.storyIds ?? []).length === 0;
if (this.coverage) {
Expand Down

0 comments on commit d4d566a

Please sign in to comment.