Releases: vitest-dev/vitest
Releases · vitest-dev/vitest
v3.1.0-beta.1
🚀 Features
- Introduce
%$
option to add number of the test to its title - by @kemuridama in #7412 (df347) - Add
diff.maxDepth
option and set non-Infinity
value as a default to reduce crash - by @hi-ogawa in #7481 (eacab) - Allow array element for
test.each/for
title formatting - by @hi-ogawa in #7522 (ea3d6) - reporter:
- Always render test time - by @AriPerkkio and Michał Grzegorzewski in #7529 (5eba6)
--silent=passed-only
to log failed tasks only - by @AriPerkkio in #7530 (f9e1c)
- vitest:
- Allow conditional
context.skip(boolean)
- by @sheremet-va and @AriPerkkio in #7659 (6adec)
- Allow conditional
View changes on GitHub
v3.0.9
🐞 Bug Fixes
- Typings of
ctx.skip()
asnever
- by @sirlancelot in #7608 (09f35) - Cleanup vitest in public
resolveConfig
API - by @hi-ogawa in #7623 (db14a) - Fix
toHaveBeenCalledWith(asymmetricMatcher)
withundefined
arguments - by @hi-ogawa in #7624 (0fb21) - Race condition in RPC filesystem cache. - by @dts in #7531 (b7f55)
- Fix
getState().testPath
during collection with no isolation - by @hi-ogawa in #7640 (3fb3f) - Support custom toString method in %s format - by @pengooseDev in #7637 (46d93)
- browser:
- Fail playwright timeouts earlier than a test timeout - by @sheremet-va and @hi-ogawa in #7565 (5eb4c)
- Remove @testing-library/dom from dependencies #7555)" - by @sheremet-va in #7628 and #7555 (94b27)
- coverage:
- Browser mode +
coverage.all
- by @AriPerkkio in #7597 (422ba)
- Browser mode +
- runner:
- vite-node:
- web-worker:
- Ensure
removeEventListener
is bound to worker - by @joelgallant in #7631 (ff42b)
- Ensure
View changes on GitHub
v3.0.8
🐞 Bug Fixes
- Fix fetch cache multiple writes - by @hi-ogawa in #7546 (1a8b4)
- Use browser.isolate instead of config.isolate - by @sheremet-va in #7560 (4b5ed)
- Remove vestigial spy stub, import directly from
@vitest/spy
- by @mrginglymus in #7575 (7f7ff) - Correctly split the argv string - by @btea in #7533 (4325a)
- browser:
- Remove @testing-library/dom from dependencies - by @sheremet-va in #7555 (5387a)
- Improve source map handling for bundled files - by @sheremet-va in #7534 (e2c57)
- Print related test file and potential test in unhandled errors - by @sheremet-va in #7564 (fee90)
- runner:
- snapshot:
- vite-node:
View changes on GitHub
v3.0.7
🐞 Bug Fixes
- browser: Support webdriverio 9 - by @sheremet-va in #7553 (b1949)
- deps: Update all non-major dependencies - in #7543 (365ff)
- expect: Correct generic MatchersObject this type in expect.extend - by @Workingstiff-s in #7526 (d5765)
- mocker: Include more modules to prefix-only module list - by @btea in #7524 (a12ec)
- spy: Clear/reset/restore mocks in stack order - by @hi-ogawa in #7499 (f7100)
🏎 Performance
- browser: Do wdio context switching only once per file - by @sheremet-va in #7549 (aaa58)
View changes on GitHub
v3.0.6
🐞 Bug Fixes
- Fix
getMockedSystemTime
foruseFakeTimer
- by @hi-ogawa in #7405 (03912) - Compat for jest-image-snapshot - by @hi-ogawa in #7390 (9542b)
- Ensure project names are readable in dark terminals - by @rgrove in #7371 (bb94c)
- Exclude
queueMicrotask
from default fake timers to not break node fetch - by @hi-ogawa in #7505 (167a9) - Use
tinyglobby
instead offast-glob
- by @benmccann in #7504 (b62ac) - browser:
- Fix mocking modules out of root - by @hi-ogawa in #7415 (d3acb)
- Fix
toHaveClass
typing - by @hi-ogawa in #7383 (7ef23) - Relax locator selectors methods - by @sheremet-va in #7422 (1b8c5)
- Resolve thread count from
maxWorkers
- by @AriPerkkio in #7483 (adbb2) - Cleanup timeout on resolve and give more information in the error - by @sheremet-va in #7487 (5a45a)
- coverage:
vite-node
to pass correct execution wrapper offset - by @AriPerkkio in #7417 (1f2e5)- Preserve moduleExecutionInfo in non-isolated runs - by @AriPerkkio in #7486 (f31a0)
- deps:
- init:
- Invalid browser config - by @AriPerkkio in #7475 (8fe64)
- reporters:
- Render tasks in tree when in TTY - by @AriPerkkio in #7503 (027ce)
- vite-node:
- watch:
- workspace:
- Forward
inspect
related cli options - by @AriPerkkio in #7373 (ed15b)
- Forward
View changes on GitHub
v3.0.5
This release includes security patches for:
🚀 Features
- ui: Insert message "no tests found" in ui - by @DevJoaoLopes in #7366 (92da4)
🐞 Bug Fixes
- Validate websocket request - by @hi-ogawa and @AriPerkkio in #7317 (191ef)
- Don't toggle cli cursor on non-TTY - by @AriPerkkio in #7336 (3c805)
- vite-node: Differentiate file url with hash and query - by @hi-ogawa in #7365 (926ca)
View changes on GitHub
v2.1.9
This release includes security patches for:
- Browser mode serves arbitrary files | CVE-2025-24963
- Remote Code Execution when accessing a malicious website while Vitest API server is listening | CVE-2025-24964
🐞 Bug Fixes
- backport #7317 to v2 - by @hi-ogawa in #7318
- (backport #7340 to v2) restrict served files from
/__screenshot-error
- by @hi-ogawa in #7343
View changes on GitHub
v1.6.1
v3.0.4
This release includes security patches for:
🐞 Bug Fixes
- Filter projects eagerly during config resolution - by @sheremet-va and @AriPerkkio in #7313 (dff44)
- Apply
development|production
condition on Vites 6 by @hi-ogawa and @sheremet-va (#7301) (ef146) - browser: Restrict served files from
/__screenshot-error
- by @hi-ogawa in #7340 (ed9ae) - deps: Update all non-major dependencies - by @sheremet-va in #7297 (38ea8)
- runner: Timeout long sync hook - by @hi-ogawa in #7289 (c60ee)
- typechecking: Support typechecking parsing with Vite 6 - by @sheremet-va in #7335 (bff70)
- types: Fix public types - by @mrginglymus and @sheremet-va in #7328 (ce6af)
View changes on GitHub
v3.0.3
🐞 Bug Fixes
- browser:
- Don't throw a validation error if v8 coverage is used with filtered instances - by @sheremet-va in #7306 (fa463)
- Don't fail when running --browser.headless if the browser projest is part of the workspace - by @sheremet-va in #7311 (e43a8)
🏎 Performance
- reporters: Update summary only when needed - by @AriPerkkio in #7291 (7f36b)