Commit a566abd
authored
chore: Fix broken coverage script (#3657)
Our coverage script would overwrite the current values with the new ones
and thus never report increases.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Fixes a mutation bug in the coverage update script and updates
coverage.json with increased branches/functions percentages.
>
> - **Scripts**:
> - Fix mutation bug in `scripts/update-coverage.mts` by initializing
reducer with `percentages: { ...currentCoverage }` to prevent
overwriting values.
> - **Coverage**:
> - Update `packages/snaps-controllers/coverage.json` with increased
`branches` and `functions` percentages.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
d2f60cd. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 3c846f0 commit a566abd
File tree
2 files changed
+3
-3
lines changed- packages/snaps-controllers
- scripts
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
0 commit comments