v3.0.0-beta.2
版本发布时间: 2024-12-10 18:22:19
vitest-dev/vitest最新发布版本:v3.0.0-beta.2(2024-12-10 18:22:19)
🚨 Breaking Changes
- expect: Check more properties for error equality - by @hi-ogawa and @sheremet-va in https://github.com/vitest-dev/vitest/issues/5876 (10023)
- spy: SpyOn reuses mock if method is already spyed on - by @sheremet-va and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6464 (b3e43)
🚀 Features
- Expose versions from
vitest/node
entry point and statically on Vitest - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7029 (be8d4) -
diff.printBasicPrototype: false
by default - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7043 (2b5c5) - Prepare the Vitest API to be stable - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6962 (9a1b5)
- cli: Support location filters for suites - by @mzhubail in https://github.com/vitest-dev/vitest/issues/7048 (751e2)
-
expect: Add
toSatisfy
asymmetric matcher - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7022 (f691a) - ui: Make clicking on a test in the UI open the report section and scroll to the test failure if applicable - by @jacoberdman2147 in https://github.com/vitest-dev/vitest/issues/6900 (1bf27)
🐞 Bug Fixes
- Persist cli filters as watch mode file filter - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6955 (cc703)
- browser: Fix user event state on preview provider - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7041 (8e944)
-
coverage: Correct coverage when
isolate: false
is used - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6957 (426ce) - runner: Long synchronous tasks does not time out - by @ferdodo and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2920 and https://github.com/vitest-dev/vitest/issues/6944 (2fb58)