3.1.0
🚀 Features
- Introduce
%$option to add number of the test to its title - by @kemuridama in https://github.com/vitest-dev/vitest/issues/7412 (df347) - Add
diff.maxDepthoption and set non-Infinityvalue as a default to reduce crash - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7481 (eacab) - Allow array element for
test.each/fortitle formatting - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7522 (ea3d6) - Add "configureVitest" plugin hook - by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7349 (20a5d)
- Support
--configLoaderCLI option - by @Carnageous and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7574 (2a852) - Added
vitest-browser-littovitest init browserand docs - by @EskiMojo14 and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7705 (5659a) - Use providers request interception for module mocking - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7576 (7883a)
- browser:
- Introduce
and,orandfilterlocators - by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7463 (63949)
- Introduce
- reporter:
- Always render test time - by @AriPerkkio and @spamshaker in https://github.com/vitest-dev/vitest/issues/7529 (5eba6)
--silent=passed-onlyto log failed tasks only - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7530 (f9e1c)
- runner:
- Add
test.scopedto overridetest.extendfixtures per-suite - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7233 (e5851)
- Add
- vitest:
- Allow conditional
context.skip(boolean)- by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7659 (6adec) - Support rolldown-vite in NormalizeUrlPlugin - by @sapphi-red and @sheremet-va in https://github.com/vitest-dev/vitest/issues/7739 (1ef31)
- Allow conditional
🐞 Bug Fixes
- Update test stats regularly - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7700 (b7953)
- Fix vm tests flakiness - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7741 (2702c)
- Set
diff.expand: falseas default - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7697 (f3420) - browser:
- Correctly calculate timeout in hooks when actions are performed - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7747 (a5505)
- deps:
- Update all non-major dependencies - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7600 (7fc5a)
- reporter:
--hideSkippedTestsshould hide suites too - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7695 (ba9b5)- Report tests in correct order - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7752 (b166e)
- Print test only once in the verbose mode - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7738 (69ca4)
- snapshot:
- Fix indent normalization - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7400 (82997)
- This change can cause small amount of very old snapshots to be updated, but there will be no functional change to how they work.
🏎 Performance
- browser: Fork jest-dom instead of bundling it - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7605 (12762)