You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dependabot PR #439 updates @vitest/coverage-v8 from 3.2.4 to 4.0.3. The install fails because the new version requires Vitest 4.x, while we are still on Vitest 3.x. We need to plan and execute a coordinated upgrade of all Vitest-related packages (core, UI, coverage, configs), accounting for the breaking changes introduced in Vitest 4.
npm ERR! peer vitest@"4.0.7" from @vitest/coverage-v8@4.0.7
npm ERR! node_modules/@vitest/coverage-v8
npm ERR! dev @vitest/coverage-v8@"^4.0.3" from the root project
Expected vs Actual
Expected: Dependencies install cleanly and CI succeeds.
Actual: Installation fails with a peer dependency conflict, blocking CI.
Additional Context
Vitest 4 introduces breaking changes—removal of the basic reporter, simplified exclude patterns, config type updates (UserConfig → ViteUserConfig), and dropping Vite 5 support. We need to update our configuration and scripts accordingly before accepting the coverage plugin upgrade. (Reference the Vitest 4 release notes cited in PR #439.)
Proposed Plan
Review the Vitest 4 migration guide and release notes.
Upgrade vitest, @vitest/ui, @vitest/coverage-v8, and any related tooling to compatible 4.x versions.
Update configuration files (coverage settings, reporters) to match the new API.
Run pipeline checks (lint, build, test, coverage) and adjust scripts as needed.
Document any follow-up tasks (e.g., changes required across other packages).
Summary
Dependabot PR #439 updates
@vitest/coverage-v8from 3.2.4 to 4.0.3. The install fails because the new version requires Vitest 4.x, while we are still on Vitest 3.x. We need to plan and execute a coordinated upgrade of all Vitest-related packages (core, UI, coverage, configs), accounting for the breaking changes introduced in Vitest 4.Reproduction Steps
main.npm installinlibraries/js.Observed Error
Expected vs Actual
Additional Context
Vitest 4 introduces breaking changes—removal of the
basicreporter, simplified exclude patterns, config type updates (UserConfig→ViteUserConfig), and dropping Vite 5 support. We need to update our configuration and scripts accordingly before accepting the coverage plugin upgrade. (Reference the Vitest 4 release notes cited in PR #439.)Proposed Plan
vitest,@vitest/ui,@vitest/coverage-v8, and any related tooling to compatible 4.x versions.Tasks
libraries/js(and other packages if applicable) for deprecated options.npm run lint,npm run test,npm run build, coverage reports.References