🚀 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)