v2.2.0-beta.1
版本发布时间: 2024-11-14 01:17:58
vitest-dev/vitest最新发布版本:v3.0.0-beta.2(2024-12-10 18:22:19)
🚀 Features
- Support inline
diff
options and supportprintBasicPrototype
- by @hi-ogawa, @sheremet-va and Michał Grzegorzewski in https://github.com/vitest-dev/vitest/issues/6740 (39186) - Allow a custom note when calling
ctx.skip()
dynamically - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6805 (697c3) -
expect:
- Add
toHaveBeenCalledExactlyOnceWith
expect matcher - by @jacoberdman2147 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/6894 (ff662) - Add
toHaveBeenCalledAfter
andtoHaveBeenCalledBefore
utility - by @Barbapapazes and @sheremet-va in https://github.com/vitest-dev/vitest/issues/6056 (85e6f)
- Add
-
runner:
- Test context can inject values from the config's
provide
- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6813 (85c64)
- Test context can inject values from the config's
-
snapshot:
- Provide
config
toresolveSnapshotPath
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6800 (746d8)
- Provide
-
vitest:
- Include
coverageMap
in json report - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6606 (9c8f7) - Add
onTestsRerun
method to global setup context - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6803 (e26e0)
- Include
🐞 Bug Fixes
-
browser: Improve source maps when
vi.mock
is present - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6810 (8d179)