@vitest/snapshot
5.0.5 · 15 Oct 2026MIT59.6M / weekRepositoryHomepagenpmAtom feed
Latest releases
All 119 releases- 5.x · latest line
5.0.5
15 Oct 2026Keep vite default
fs.denywith api token fileHandle quoted file names in
--changedAdd
datato theimport.meta.hotstub
Bug Fixes
Keep vite default
fs.denywith api token fileHandle quoted file names in
--changedAdd
datato theimport.meta.hotstubSet
skipinskipIf, ignoreundefinedoptionsSkip builtin loading in async leak detector
Keep the import frame in native loader errors
Run hook cleanups when a later hook fails
Release mocks of finished test files
Abort all running tests on cancel
browser: Ignore synthetic pagehide events
browser: Run plugin buildStart on server creation
browser: Drop late connections of closed sessions
browser: Wait 30s for the browser to close
browser: Run global setup once with instances
reporter: End reason
'failed'on worker crash
5.0.4
12 Oct 2026experimental: Tag cache directories with CACHEDIR.TAG
experimental: Support
test.ui.themeoptionexperimental: Highlight selector multiple matches in trace view
Features
experimental: Tag cache directories with CACHEDIR.TAG
experimental: Support
test.ui.themeoptionexperimental: Highlight selector multiple matches in trace view
experimental: Print how many tests were affected and a total when running
--changedexperimental: Add an option to cache dependencies instead of statically parsing them
experimental: Add fit and zoom controls to trace viewer
Bug Fixes
Fail the run on git and location filter errors
Enable fsModuleCache by default
Track project files and mocks with --changed
Refactor caching, fix
:in project and change the shape ofresultscacheKeep full
$string values whentaskTitleValueFormatTruncateis 0Resolve node builtins in client environments
Fix module graph builtin externals after #11421
Wrap module mocks during in-source testing
Handle line endings in snapshot
Respect root in projects
Resolve mocks in directories with spaces
api: Publish the api token atomically
browser: Close the mock route interception race
browser: Allow toHaveTextContent without arguments
browser: Apply API options without browser config
browser: Preserve undefined command arguments
browser: Wait for setup mocks before importing a test file
browser: Avoid extra scroll outside the iframe
browser: Run browser instances as workers
⚠️ This can degrade performance if you have a custom
maxWorkerssetting. Previously, it was applied incorrectly and could lead to Vitest using too many resources. For example, a lower number would still open too many browsers. Fixing it means Vitest opens less instances by default now.
browser: Open one cdp session per tester
browser: Clean up unmocked and pending mocks
coverage: V8 browser memory leak between test files
coverage:
allowExternalfails to include uncovered filescoverage: Filenames containing brackets incorrectly showing as uncovered
coverage: Istanbul coverage wrong when module transform warmups
deps: Update all non-major dependencies
expect: Fix
MapandSetdeep equality in some assertionsexpect: Check value in chai-style returned
mocker: Fix native loader mocking edge cases
pretty-format: Support boxed symbols
reporters: Junit to strip ANSI sequences from all XML attributes
runner: Don't cache failed fixture setups
typecheck: Use typescript pool in toTestSpecification
ui: Remove duplicate browser-open call opening two tabs
ui: Simplify explorer filtering + fix nested tests when search matches a suite
ui: Store module graph once per environment
ui: Mount index.html handler on the ui base path
ui: Center split pane resize handle
vm: Bind
thistomodule.exports
Performance
Reuse fsModuleCache when filtering by source
spy: Reset only mocks that were called or reconfigured
5.0.3
30 Sep 2026Isolate
result.statusbetweenrepeatsrunsDon't print an interceptor warning in browser mode
Don't retry when
test.failsexpectedly failed
Bug Fixes
Isolate
result.statusbetweenrepeatsrunsDon't print an interceptor warning in browser mode
Don't retry when
test.failsexpectedly failedScope cache key generators to projects
browser: Delay server
listenuntil tests start runningbrowser: Check mock path boundaries
browser: Keep config of browser-consumed environments
browser: Ignore page crash while cancelling
browser:
toMatchScreenshotuses wrong reference on retried testscache: Revalidate imports of cached modules
deps: Pin
why-is-node-runningto3.2.1to avoid users running intoERR_PNPM_TRUST_DOWNGRADEexpect: Pass current equality testers to
expect.extendasymmetric matchersjsdom: Support Blob on jsdom 30.1
pool: Preserve unique pool ids when
groupOrderis setui: Split-pane handle overlapping iframe
vitest: Remove root temp dir on close
vm: Do not optimize deps from index.html
vm: Don't reuse scripts across vite environments
5.0.2
25 Sep 2026Bind
processin case global is overwrittendetect-async-leaks: Ignore
process.stdiohandlesexpect: Fix
toMatchObjectwith asymmetric matchers
Bug Fixes
Bind
processin case global is overwrittendetect-async-leaks: Ignore
process.stdiohandlesexpect: Fix
toMatchObjectwith asymmetric matchersjsdom: Fix
RequestwithBlobbody on jsdom 28+reporter:
agentto respect--silentreporters: Handle concurrent
createReportcallsreporters:
hanging-processto use ESM entrypointspy: Fix stack overflow when spying
Set.prototype.addui: Persist authentication cookie beyond current browser session
5.0.1
15 Sep 2026ui: Move trace attempts selector to viewer header
ui: Add focused trace view layout mode
Exit 1 when vitest list fails collection
Features
ui: Move trace attempts selector to viewer header
ui: Add focused trace view layout mode
Bug Fixes
Exit 1 when vitest list fails collection
Keep parse error details in static collection
Avoid recursive prototype in automocking
Prevent false Vitest import resolution
Keep metadata file when clearing the cache
Correct typos in error message and comments
Resolve ResolvedConfig exactOptionalPropertyTypes errors
Share the server on self-referencing
extendsWarn when deprecated
deps.optimizer.webis usedbrowser: Avoid double quotes in
config.definedoctor: Measure vm pools for custom environments
expect: Correct return value in
toMatchAriaSnapshotfakeTimers: Force
queueMicrotaskandnextTickintoNotFakesnapshot: Report obsolete keys next to skipped tests
types: Make public declarations self-contained
ui: Fix collapse/expand suite with file name search
ui: Fix explorer file summary count
utils: Fix
deepMergeto handle prototype
Dependency tracking · free for 3 projects
Know when your own dependencies move
@vitest/snapshot shipped 2 new majors in the last 12 months, among 41 releases. Inlinr shows which of your projects are behind, and what the upgrade breaks.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Registry facts last checked 21 Oct 2026. Releases and advisories last read 21 Oct 2026.