Skip to content

chore: update vitest and @vitest/coverage-istanbul dependencies#2598

Merged
vadyvas merged 6 commits intomainfrom
chore/update-vitest-dep
Feb 24, 2026
Merged

chore: update vitest and @vitest/coverage-istanbul dependencies#2598
vadyvas merged 6 commits intomainfrom
chore/update-vitest-dep

Conversation

@vadyvas
Copy link
Contributor

@vadyvas vadyvas commented Feb 23, 2026

What/Why/How?

Upgrade vitest and @vitest/coverage-istanbul to 4.0.18 and fix tests that broke after the upgrade.

Tests relying on previous behavior started failing:

  • date spies no longer behave the same way (switched to fake timers instead of spying on Date).
  • mock call counts are no longer reset automatically between tests (added vi.clearAllMocks() / vi.resetAllMocks() in beforeEach where tests assert call counts, so counts don’t leak between tests).
  • constructor mocks must use real functions/classes (replaced arrow functions with function/class declarations).

Reference

Testing

Screenshots (optional)

Check yourself

  • Code changed? - Tested with Redoc/Realm/Reunite (internal)
  • All new/updated code is covered by tests
  • New package installed? - Tested in different environments (browser/node)
  • Documentation update considered

Security

  • The security impact of the change has been considered
  • Code follows company security practices and guidelines

@changeset-bot
Copy link

changeset-bot bot commented Feb 23, 2026

⚠️ No Changeset found

Latest commit: 22fa0fe

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Feb 23, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 79.62% (🎯 79%) 6372 / 8003
🔵 Statements 79.05% (🎯 78%) 6583 / 8327
🔵 Functions 83.53% (🎯 83%) 1309 / 1567
🔵 Branches 71.17% (🎯 71%) 4341 / 6099
File CoverageNo changed files found.
Generated in workflow #8776 for commit 22fa0fe by the Vitest Coverage Report Action

@github-actions
Copy link
Contributor

github-actions bot commented Feb 23, 2026

CLI Version Mean Time ± Std Dev (s) Relative Performance (Lower is Faster)
cli-latest 3.540s ± 0.053s ▓ 1.00x
cli-next 3.538s ± 0.053s ▓ 1.00x (Fastest)

@vadyvas vadyvas marked this pull request as ready for review February 23, 2026 20:06
@vadyvas vadyvas requested a review from a team as a code owner February 23, 2026 20:06
@vadyvas vadyvas force-pushed the chore/update-vitest-dep branch from d1cf7fa to c531487 Compare February 24, 2026 09:41
@vadyvas vadyvas requested a review from tatomyr February 24, 2026 09:50
@vadyvas vadyvas requested a review from tatomyr February 24, 2026 10:24
@vadyvas vadyvas force-pushed the chore/update-vitest-dep branch from 5ec107a to 04858dc Compare February 24, 2026 10:28
@vadyvas vadyvas self-assigned this Feb 24, 2026
@vadyvas vadyvas force-pushed the chore/update-vitest-dep branch from 3b20ff6 to 22fa0fe Compare February 24, 2026 13:25
@vadyvas vadyvas merged commit cf5441a into main Feb 24, 2026
76 of 78 checks passed
@vadyvas vadyvas deleted the chore/update-vitest-dep branch February 24, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants