🚨 Breaking Changes
- Remove deprecated
workspace
option in favor ofprojects
- by @sheremet-va in #8218 (76fb7) - Ignore
--standalone
when CLI filename filter is used - by @AriPerkkio in #8262 (013bf)
🚀 Features
- Add spy option to vi.mockObject - by @rChaoz in #8285 (81d76)
- browser: Support
toBeInViewport
utility method to assert element is in viewport or not - by @Shinyaigeek in #8234 (ceed5) - expect: Support
toBeNullable
expect function to check provided value is nullish - by @Shinyaigeek and @sheremet-va in #8294 (eeec5) - mocker: Add
automocker
entry - by @sheremet-va in #8301 (e9c92)
🐞 Bug Fixes
- Remove unused dependencies - by @AriPerkkio in #8184 (feadc)
- Distribute test files to shards more evenly - by @Shinyaigeek and @AriPerkkio in #8288 (7b489)
- Use suite's timeout when
test.extend
- by @AriPerkkio in #8278 (43977) - Support snapshot with no object key sorting - by @hi-ogawa and @sheremet-va in #8136 (e85e3)
- Annotation location always points to the test file - by @sheremet-va in #8315 (88071)
- core:
- Fix
objectContaining
expect utility to have more compatibility to jest's one - by @Shinyaigeek in #8241 (480be)
- Fix
- coverage:
- Include files based on
--project
filter - by @gtbuchanan in #7885 (761be) - Prevent encoding filenames of uncovered files - by @AriPerkkio in #8239 (8a998)
- Include files based on
- deps:
- Update all non-major dependencies - by @sheremet-va in #8235 (a1e57)
- mocker:
- reporter:
- Invisible CLI menus when
vitest --standalone
- by @AriPerkkio in #8248 (37cc2)
- Invisible CLI menus when
- rolldown-vite:
- Properly disable minifier in the browser client - by @sheremet-va in #8306 (f55bb)
- watch:
- Filename filter runs duplicate tests in workspaces - by @AriPerkkio in #8250 (932d8)