Skip to content

Commit

Permalink
send coverage schema only once
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed May 7, 2023
1 parent f7f5f17 commit d5f3427
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Behat/JsCoverageContextTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ protected function saveJsCoverage(): void
const res = [];
for (const coverage of [windowCoverage, ...navigateCoverages]) {
res.push(transformCoverageFx(coverage));
Object.keys(coverage).forEach((path) => {
seenPaths.add(path);
});
}
return res;
Expand Down

0 comments on commit d5f3427

Please sign in to comment.