Repository navigation
chore(deps): update vitest to 5.1.0 and turn on its wait timeline - #213
Merged
Merged
Conversation
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.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Owner
Author
|
🎉 This PR is included in version 1.28.11 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updates Vitest from 5.0.5 to 5.1.0 and turns on the two options 5.1 adds that suit this suite:
node:timersmodules.No Renovate pull request for Vitest is open, so this one duplicates nothing.
Type of Change
Related Issue
Changes Made
vitestand@vitest/coverage-v8move to 5.1.0 together, since the coverage provider's peer range onvitestis exact.@vitest/*siblings.minimumReleaseAgeasks for.experimental.traceTimelineinvitest.config.mts: a failing test now prints everyvi.waitFor,vi.waitUntilandexpect.pollit ran, named by itsmessage, with when each started and how long it took. A passing test records nothing.fakeTimers.fakeNodeBuiltins:vi.useFakeTimers()fakesnode:timersandnode:timers/promisesas well as the globals. Nothing imports either today, so no test changes. It is the default Vitest's next major ships.AGENTS.mdsays what the two options do, beside the commands that run the suite.Testing
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.pnpm build), anddist/comes out unchanged.vi.waitForwith amessageprints it as the error's prefix and as the step underTrace:;vi.useFakeTimers()advances asetTimeoutfromnode:timers/promises.Checklist
pnpm verifypasses (format check, typecheck, coverage and build)CODING_STANDARDS.mdCODING_STANDARDS.mdGLOSSARY.md) rather than synonymsdist/withpnpm buildand committed it, if I touched anything undersrc/action.yml, the wiki, the README, the Outputs section ofsrc/application/AGENTS.mdand the outputs line ofARCHITECTURE.md, alphabeticallyAGENTS.md,CODING_STANDARDS.md,GLOSSARY.md,ARCHITECTURE.md, ADR or wiki page my change affects, in this same PR, andpnpm test:docspassesAdditional Notes
src/changes, so no release is cut anddist/stays as it is.vi.waitFororvi.waitUntilcall, so no wait gains amessage.