Improved
v4.1.0-beta.1
🚀 Features
- Return a disposable from doMock() - by @kirkwaiblinger in https://github.com/vitest-dev/vitest/issues/9332 (e3e65)
- Added chai style assertions for spying - by @ronnakamoto and @sheremet-va in https://github.com/vitest-dev/vitest/issues/8842 (841df)
- Update to sinon/fake-timers v15 and add
setTickModeto timer controls - by @atscott and @sheremet-va in https://github.com/vitest-dev/vitest/issues/8726 (4b480) - api:
- Support tests starting or ending with
testinexperimental_parseSpecification- by @jgillick and Jeremy Gillick in https://github.com/vitest-dev/vitest/issues/9235 (2f367) - Add filters to
createSpecification- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9336 (c8e6c) - Expose
runTestFilesas alternative torunTestSpecifications- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9443 (43d76)
- Support tests starting or ending with
- browser:
- Add
userEvent.wheelAPI - by @macarie in https://github.com/vitest-dev/vitest/issues/9188 (66080)
- Add
- coverage:
- Support
ignore start/stopignore hints - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9204 (e59c9)
- Support
- experimental:
- Add
onModuleRunnerhook toworker.init- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9286 (e977f)
- Add
- runner:
- Enhance
retryoptions - by @MazenSamehR, Matan Shavit, @AriPerkkio and @sheremet-va in https://github.com/vitest-dev/vitest/issues/9370 (9e4cf)
- Enhance
🐞 Bug Fixes
- Deprecate several vitest/* entry points - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9347 (fd459)
- Use
meta.urlincreateRequire- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9441 (e3422) - Preact browser mode init example of render function not async - by @WuMingDao in https://github.com/vitest-dev/vitest/issues/9375 (2bea5)
- browser: Avoid updating screenshots when
toMatchScreenshotpasses - by @macarie in https://github.com/vitest-dev/vitest/issues/9289 (46aab) - coverage: Infer transform mode for uncovered files - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9435 (f3967)
- deps: Update all non-major dependencies - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9192