Skip to content

chore(deps): update vitest to 5.1.0 and turn on its wait timeline - #213

Merged
fbuireu merged 1 commit into
mainfrom
build/vitest-5.1
Nov 6, 2026
Merged

fbuireu merged 1 commit into
mainfrom
build/vitest-5.1

Conversation

@fbuireu

@fbuireu fbuireu commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Description

Updates Vitest from 5.0.5 to 5.1.0 and turns on the two options 5.1 adds that suit this suite:

  • the timeline a failing test prints of the waits it ran;
  • fake timers that also fake the node:timers modules.

No Renovate pull request for Vitest is open, so this one duplicates nothing.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Configuration or workflow change
  • Code refactoring
  • Performance improvement
  • Test update

Related Issue

Changes Made

  • Versions:
    • vitest and @vitest/coverage-v8 move to 5.1.0 together, since the coverage provider's peer range on vitest is exact.
    • The lockfile is regenerated by pnpm and changes only those packages and their @vitest/* siblings.
    • 5.1.0 was published on 2026-11-02, so it is past the three days minimumReleaseAge asks for.
  • experimental.traceTimeline in vitest.config.mts: a failing test now prints every vi.waitFor, vi.waitUntil and expect.poll it ran, named by its message, with when each started and how long it took. A passing test records nothing.
  • fakeTimers.fakeNodeBuiltins: vi.useFakeTimers() fakes node:timers and node:timers/promises as well as the globals. Nothing imports either today, so no test changes. It is the default Vitest's next major ships.
  • Docs: AGENTS.md says what the two options do, beside the commands that run the suite.

Testing

  • Existing unit tests pass (pnpm test:ut): 1134 tests on Vitest 5.1.0, plus the 118-case docs contract. Coverage is 99.3% statements and 95.4% branches.
  • Added new tests for changes
  • Manually tested with a sample workflow
  • The bundle builds (pnpm build), and dist/ comes out unchanged.
  • A throwaway probe, since deleted, confirmed both options:
    • a failing vi.waitFor with a message prints it as the error's prefix and as the step under Trace:;
    • vi.useFakeTimers() advances a setTimeout from node:timers/promises.

Checklist

  • pnpm verify passes (format check, typecheck, coverage and build)
  • I have reviewed my own diff against CODING_STANDARDS.md
  • My change carries no inline comments; rationale lives in this PR, the commit messages, an ADR or a rule in CODING_STANDARDS.md
  • I used the glossary's words (GLOSSARY.md) rather than synonyms
  • I rebuilt dist/ with pnpm build and committed it, if I touched anything under src/
  • Changed inputs, outputs or defaults are reflected in action.yml, the wiki, the README, the Outputs section of src/application/AGENTS.md and the outputs line of ARCHITECTURE.md, alphabetically
  • I updated any AGENTS.md, CODING_STANDARDS.md, GLOSSARY.md, ARCHITECTURE.md, ADR or wiki page my change affects, in this same PR, and pnpm test:docs passes
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works

Additional Notes

  • Nothing under src/ changes, so no release is cut and dist/ stays as it is.
  • The suite has no vi.waitFor or vi.waitUntil call, so no wait gains a message.

Vitest 5.1.0, with @vitest/coverage-v8 5.1.0 beside it, since its peer range
on vitest is exact. Both are past the three days minimumReleaseAge asks for.

experimental.traceTimeline prints, under a failing test, every vi.waitFor,
vi.waitUntil and expect.poll it ran, by its message, and how long each took;
a passing test records nothing.

fakeTimers.fakeNodeBuiltins makes vi.useFakeTimers() fake node:timers and
node:timers/promises as well as the globals. Nothing imports them today, and
it is the default Vitest's next major ships.
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​vitest/​coverage-v8@​5.0.5 ⏵ 5.1.09910079 +198100
Updatedvitest@​5.0.5 ⏵ 5.1.098 +110079 +199100

View full report

@codecov

codecov Bot commented Nov 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@fbuireu
fbuireu merged commit 76d79af into main Nov 6, 2026
15 checks passed
@fbuireu
fbuireu deleted the build/vitest-5.1 branch November 6, 2026 06:31
@fbuireu

fbuireu commented Nov 13, 2026

Copy link
Copy Markdown
Owner Author

🎉 This PR is included in version 1.28.11 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant