# Vitest v4.0.2 — Release & Upgrade Intelligence
- **Product:** Vitest (https://vitest.dev)
- **Version:** v4.0.2
- **Released:** Oct 23, 2025
- **Impact Score:** 5/10
- **Breaking Changes:** Not verified
- **Canonical Analysis:** https://changelogs.us/vitest/updates/v4.0.2/

## Executive Summary (TL;DR)
Vitest v4.0.2. Source highlight: &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

## Bug Fixes
- Don't print the deprecation notice in node_modules &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8779 <samp>(588f7)</samp>
- Assign envs before running tests to keep in sync with process.env &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8769 <samp>(26ce8)</samp>
- Properly inherit implementation's `length` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8778 <samp>(d4c2b)</samp>
- Reset spies if both `restoreMocks` and `mockReset` are set in the config &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8781 <samp>(2eedb)</samp>
