v4.1.2
This release bumps Vitest's flatted version and removes version pinning to resolve flatted's CVE related issues (https://github.com/vitest-dev/vitest/issues/9975).
🐞 Bug Fixes
- Don't resolve
setupFilesfrom parent directory - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9960 <samp>(7aa93)</samp> - Ensure sequential mock/unmock resolution - by @hi-ogawa and Claude Opus 4.6 in https://github.com/vitest-dev/vitest/issues/9830 <samp>(7c065)</samp>
- browser: Take failure screenshot if
toMatchScreenshotcan't capture a stable screenshot - by @macarie in https://github.com/vitest-dev/vitest/issues/9847 <samp>(faace)</samp> - coverage: Correct
coverageConfigDefaultsvalues and types - by @Arthie in https://github.com/vitest-dev/vitest/issues/9940 <samp>(b3c99)</samp> - pretty-format: Fix output limit over counting - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9965 <samp>(d3b7a)</samp>
- Disable colors if agent is detected - by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9851 <samp>(6f97b)</samp>
View changes on GitHub
Fetched June 1, 2026