-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): update vitest monorepo to v4 (major) #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3b88cf5 to
a1a1694
Compare
a1a1694 to
79d683f
Compare
79d683f to
53c6853
Compare
53c6853 to
96997a9
Compare
96997a9 to
c11a532
Compare
c11a532 to
59b9e8d
Compare
|
Claude finished @renovate[bot]'s task —— View job Vitest v4 Upgrade PR ReviewCode Quality & Best Practices ✅The upgrade from Vitest v3.2.4 to v4.0.0 is generally well-structured. The dependency updates in Critical Issue Found ❌Breaking Change: Pool ConfigurationFile: The // ❌ This no longer works in v4
poolOptions: {
threads: {
singleThread: true,
},
},Error: Recommended Fix:Replace the pool configuration with v4-compatible options: // ✅ v4 compatible configuration
pool: 'threads',
fileParallelism: false, // Replaces singleThread: true
maxWorkers: 1, // Ensures single workerPerformance Considerations 🚀
Security Assessment ✅
Test Coverage Assessment ✅
Additional Recommendations
SummaryThis is a solid upgrade with excellent test coverage, but requires one configuration fix to resolve the breaking change. Once the pool configuration is updated, this PR should be safe to merge. Status: ❌ Needs configuration fix before merge |
59b9e8d to
080e633
Compare
Code Review: Vitest v3 → v4 UpgradeOverviewThis PR upgrades Vitest from v3.2.4 to v4.0.6, which is a major version bump with significant breaking changes. While the dependency update itself is straightforward, there is a critical type-check failure that must be resolved before merging. 🚨 Critical Issues1. Type Check Failure -
|
PR Review: Vitest v3 → v4 UpgradeSummaryThis PR upgrades Vitest from v3.2.4 to v4.0.6, which includes several breaking changes. The configuration has been updated appropriately, but there is one critical issue preventing merge. 🚨 Critical IssueType Check Failure
Required Fix: - // @ts-expect-error Bun resolves two Vite type copies; suppress mismatched plugin signature.
plugins: [react()],Either remove the comment entirely or change it to a regular comment if documentation is needed. ✅ Positive Changes
📋 RecommendationsHigh Priority
Medium Priority
Low Priority
🔒 Security & Performance
📊 Test Coverage
ConclusionThis is a well-structured dependency upgrade PR from Renovate. The configuration changes correctly address Vitest v4's breaking changes. However, the PR cannot be merged until the type-check failure is resolved. Action Required: Remove the now-unnecessary |
Pull Request Review - Vitest 4.0 UpgradeOverviewThis PR upgrades Vitest from v3.2.4 to v4.0.6, a major version upgrade that includes significant breaking changes and improvements. Summary✅ LGTM - The changes look good. CI is passing and the migration appears to be properly handled. Detailed Analysis1. Code Quality & Best Practices ⭐Positive Changes:
Configuration Migration: - poolOptions: {
- threads: {
- singleThread: true,
- },
- },
+ fileParallelism: false,
+ maxWorkers: 1,This change follows Vitest 4.0's breaking change where the pool architecture was rewritten without 2. Potential Issues & Concerns 🔍Breaking Changes to Be Aware Of: Based on the release notes, here are key breaking changes that may affect your tests:
Recommendations:
3. Performance Considerations 🚀Improvements:
Current Configuration:
4. Security Considerations 🔒Dependency Updates:
Notable Dependency Changes:
5. Test Coverage 📊Test Files Found (13 total):
CI Status:
RecommendationsImmediate Actions
Follow-up Tasks (Optional)
Compliance with CLAUDE.md Guidelines ✅
ConclusionThis is a well-executed dependency update. The configuration migration is correct, CI is passing, and the codebase appears ready for Vitest 4.0. The breaking changes are mostly internal to Vitest and shouldn't affect your existing tests, but it's worth running the test suite locally and watching the first deployment. Recommendation: ✅ APPROVE & MERGE Good work by Renovate Bot on keeping dependencies up to date! 🎉 |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
This PR contains the following updates:
^3.2.4->^4.0.0^3.2.4->^4.0.0Release Notes
vitest-dev/vitest (@vitest/ui)
v4.0.6Compare Source
🐞 Bug Fixes
isolateandfileParallelismare false - by @sheremet-va in #8889 (31706)FormDatatoRequest- by @sheremet-va in #8880 (197ca)View changes on GitHub
v4.0.5Compare Source
🐞 Bug Fixes
ssr.noExternalwhen externalizing dependencies - by @sheremet-va in #8862 (a4f86)Locatortype in selectOptions element parameter - by @rzzf and @sheremet-va in #8848 (7ee28)getBuiltinsunconditionally - by @sapphi-red in #8863 (0e858)groupIdtogroupOrderin error message - by @Yohannfra in #8856 (b9aab)🏎 Performance
--no-isolate --maxWorkers=1- by @AriPerkkio in #8835 (584aa)View changes on GitHub
v4.0.4Compare Source
🐞 Bug Fixes
node:prefix - by @sheremet-va in #8829 (06208)MaxListenersExceededWarning- by @AriPerkkio in #8820 (d1bff)stdioto logger - by @AriPerkkio in #8809 (fb95f)vi.mockedutility - by @sheremet-va in #8839 (f8756)isolate: false- by @AriPerkkio in #8821 (573dc)🏎 Performance
View changes on GitHub
v4.0.3Compare Source
🐞 Bug Fixes
View changes on GitHub
v4.0.2Compare Source
🐞 Bug Fixes
length- by @sheremet-va in #8778 (d4c2b)restoreMocksandmockResetis set in the config - by @sheremet-va in #8781 (2eedb)View changes on GitHub
v4.0.1Compare Source
🐞 Bug Fixes
getBuiltinscheck - by @sheremet-va in #8765 (81000)View changes on GitHub
v4.0.0Compare Source
🚨 Breaking Changes
'basic'reporter - by @AriPerkkio in #7884 (82fcf)vitest/nodeexports - by @sheremet-va in #8197 (dc848)vitest/nodeinstead - by @sheremet-va in #8200 (1e60c)workspaceoption in favor ofprojects- by @sheremet-va in #8218 (76fb7)--standalonewhen CLI filename filter is used - by @AriPerkkio in #8262 (013bf)minWorkersand set it automatically to 0 in non watch mode - by @sheremet-va in #8454 (2c2d1)treereporter - by @sheremet-va and @AriPerkkio in #8500 (25fd3)tinypool- by @AriPerkkio and @sheremet-va in #8705 (4822d)todoif no function is passed down totestordescribe- by @sheremet-va in #8346 (1a81c)🚀 Features
onUnhandledErrorcallback - by @sheremet-va in #8162 (924cb)expect.assertfor type narrowing - by @sheremet-va in #8695 (fe589)displayAnnotationsoption togithub-options- by @sheremet-va in #8706 (4a66d)experimental_parseSpecifications- by @sheremet-va in #8408 (fdeb2)enableCoverageanddisableCoveragemethods - by @sheremet-va and @AriPerkkio in #8412 (61eb7)getGlobalTestNamePatternmethod - by @sheremet-va in #8438 (bdb70)relativeModuleIdtoTestModule- by @sheremet-va in #8505 (3be09)getSeedmethod - by @sheremet-va in #8592 (438c4)toBeInViewportutility method to assert element is in viewport or not - by @Shinyaigeek in #8234 (ceed5)vitest initcli command - by @thejackshelton in #8330 (1638b)toMatchScreenshotfor Visual Regression Testing - by @macarie in #8041 (d45f9)trackUnhandledErrorsoption - by @sheremet-va in #8386 (c0ec0)lengthproperty to locators,toHaveLengthnow accepts locators - by @sheremet-va in #8512 (2308c)optionsonBrowserProviderOption- by @sheremet-va in #8609 (0d0e5)--inspectoption in webdriverio - by @sheremet-va in #8613 (38adc)autoUpdateto support percentage formatting - by @Battjmo and @AriPerkkio in #8456 (99e01)toBeNullableexpect function to check provided value is nullish - by @Shinyaigeek and @sheremet-va in #8294 (eeec5)automockerentry - by @sheremet-va in #8301 (e9c92)🐞 Bug Fixes
test.extend- by @AriPerkkio in #8278 (43977)--changedflag support tovitest listcommand - by @haakonjackfloat in #8270 and #8272 (e71a5)browser- by @sheremet-va in #8334 (0417a)oxcinstead ofesbuildonrolldown-vite- by @hi-ogawa in #8378 (e922e)stacksproperty in Node.js context - by @sheremet-va in #8392 (b825e)import.meta.resolveon Vite 7 - by @hi-ogawa in #8493 (549d3)expect.pollassertion fails - by @sheremet-va in #8483 (fb450)useFakeTimersis called multiple times - by @sheremet-va in #8504 (ed7e3)expect.extendmatchers - by @lzl0304 in #8520 (96945)globalSetupfiles - by @sheremet-va in #8534 (8978a)$and%formatting totest.for/eachtitle - by @hi-ogawa in #8557 (ea6d7)"./*"with specific files in vitest package - by @hi-ogawa in #8560 (ce746)optimizeDeps.includefor browser mode - by @jake-danton in #8570 (cdcf7)enginesfield to drop Node 18 support - by @sheremet-va in #8608 (9a0bf)baseoption doesn't crash vitest - by @sheremet-va in #8760 (9f0ec)locator.element()returnsHTMLElementorSVGElement- by @sheremet-va in #8440 (c1ac1)vitedirectly - by @sheremet-va in #8541 (d7fca)not.toBeInTheDocument()- by @sheremet-va in #8751 (f5d06)objectContainingexpect utility to have more compatibility to jest's one - by @Shinyaigeek in #8241 (480be)--projectfilter - by @gtbuchanan in #7885 (761be)vitest:coverage-transformplugin - by @AriPerkkio in #8477 (ff517)coverage.exclude- by @sheremet-va in #8731 (c9c30)regexpHoistableto allow whitespace before parentheses - by @cszhjh in #8231 (a0f9a)resolvedSourcescorrectly - by @sheremet-va in #8736 (8fc52)vitest --standalone- by @AriPerkkio in #8248 (37cc2)config.includeoption withconfig.browser.instances[].includeoption if it is specified - by @Shinyaigeek in #8260 (010fc)🏎 Performance
process.title- by @sheremet-va in #8453 (0a766)@vitest/expect- by @sheremet-va in #8461 (cc98c)workerIdfrom a global object - by @sheremet-va in #8507 (46b13)meta.resolveflag instead of a custom loader - by @sheremet-va in #8567 (2e063)View changes on GitHub
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.