Releases: vitest-dev/vitest
Releases · vitest-dev/vitest
v3.1.2
🐞 Bug Fixes
- Add global
chai
variable invitest/globals
(fix: #7474) - by @Jay-Karia in #7771 and #7474 (d9297) - Prevent modifying
test.exclude
when same object passed incoverage.exclude
- by @AriPerkkio in #7774 (c3751) - Fix already hoisted mock - by @hi-ogawa in #7815 (773b1)
- Fix test.scoped inheritance - by @hi-ogawa in #7814 (db6c3)
- Remove pointer-events-none after resizing the left panel - by @alexprudhomme in #7811 (a7e77)
- Default to run mode when stdin is not a TTY - by @kentonv, @hi-ogawa and @sheremet-va in #7673 (6358f)
- Use happy-dom/jsdom types for
envionmentOptions
- by @hi-ogawa in #7795 (67430) - browser:
- coverage:
await
profiler calls - by @AriPerkkio in #7763 (795a6)- Expose profiling timers - by @AriPerkkio in #7820 (5652b)
- deps:
- runner:
- ui:
- vite-node:
🏎 Performance
- browser: Improve browser parallelisation - by @sheremet-va in #7665 (816a5)
View changes on GitHub
v3.1.1
🐞 Bug Fixes
- reporter:
- Report tests in correct order - by @sheremet-va in #7752 (b166e)
- Print test only once in the verbose mode - by @sheremet-va in #7738 (69ca4)
View changes on GitHub
v3.1.0
🚀 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) - Add "configureVitest" plugin hook - by @sheremet-va and @AriPerkkio in #7349 (20a5d)
- Support
--configLoader
CLI option - by @Carnageous and @hi-ogawa in #7574 (2a852) - Added
vitest-browser-lit
tovitest init browser
and docs - by @EskiMojo14 and @hi-ogawa in #7705 (5659a) - Use providers request interception for module mocking - by @sheremet-va in #7576 (7883a)
- browser:
- Introduce
and
,or
andfilter
locators - by @sheremet-va and @AriPerkkio in #7463 (63949)
- Introduce
- reporter:
- Always render test time - by @AriPerkkio and @spamshaker in #7529 (5eba6)
--silent=passed-only
to log failed tasks only - by @AriPerkkio in #7530 (f9e1c)
- runner:
- Add
test.scoped
to overridetest.extend
fixtures per-suite - by @sheremet-va in #7233 (e5851)
- Add
- vitest:
- Allow conditional
context.skip(boolean)
- by @sheremet-va and @AriPerkkio in #7659 (6adec) - Support rolldown-vite in NormalizeUrlPlugin - by @sapphi-red and @sheremet-va in #7739 (1ef31)
- Allow conditional
🐞 Bug Fixes
- Update test stats regularly - by @hi-ogawa in #7700 (b7953)
- Fix vm tests flakiness - by @sheremet-va in #7741 (2702c)
- Set
diff.expand: false
as default - by @hi-ogawa in #7697 (f3420) - browser:
- Correctly calculate timeout in hooks when actions are performed - by @sheremet-va in #7747 (a5505)
- deps:
- reporter:
--hideSkippedTests
should hide suites too - by @AriPerkkio in #7695 (ba9b5)- Report tests in correct order - by @sheremet-va in #7752 (b166e)
- Print test only once in the verbose mode - by @sheremet-va in #7738 (69ca4)
- snapshot:
🏎 Performance
- browser: Fork jest-dom instead of bundling it - by @sheremet-va in #7605 (12762)
View changes on GitHub
v3.1.0-beta.2
🚀 Features
- Add "configureVitest" plugin hook - by @sheremet-va and @AriPerkkio in #7349 (20a5d)
- browser: Introduce
and
,or
andfilter
locators - by @sheremet-va and @AriPerkkio in #7463 (63949) - runner: Add
test.scoped
to overridetest.extend
fixtures per-suite - by @sheremet-va in #7233 (e5851)
🐞 Bug Fixes
- reporter:
--hideSkippedTests
should hide suites too - by @AriPerkkio in #7695 (ba9b5)
View changes on GitHub
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)