v0.30.0
版本发布时间: 2023-04-09 21:38:33
vitest-dev/vitest最新发布版本:v2.1.0-beta.6(2024-08-20 21:19:10)
🚨 Breaking Changes
- Remove tinyspy internal properties on Vitest spies - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3069 (2f1dc)
- Only support Node.js 14.18.0 or newer - by @danez in https://github.com/vitest-dev/vitest/issues/2985 (287dc)
- Use "concordance" package to display diff instead of using custom diff - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2828 (44630)
- Move snapshot implementation into @vitest/snapshot - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3032 (6aff0)
- Bump coverage packages vitest peer dependency - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3126 (be1bf)
- Add workspace support - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3103 (b9d1a)
- Experimental optimizer introduced in 0.29.0 is temporarily disabled.
🚀 Features
- Gzip html reporter's metadata - by @7rulnik in https://github.com/vitest-dev/vitest/issues/3113 (7856e)
- Add chai config - by @btea in https://github.com/vitest-dev/vitest/issues/3066 (6fcba)
-
snapshot: Introduce
toMatchFileSnapshot
and auto queuing expect promise - by @antfu in https://github.com/vitest-dev/vitest/issues/3116 (bdc06)
🐞 Bug Fixes
- Resolve reporters passed down to the CLI relative to the running directory - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3097 (93c7e)
- Don't show "diff" in "serialized error" section - by @sheremet-va (326b2)
- Convert '--single-thread' and '--inspect' cli args to boolean - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3111 (83a9a)
- Stack trace point to incorrect file - by @ChenKS12138 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3004 and https://github.com/vitest-dev/vitest/issues/3115 (5cee4)
- Run benchmarks sequentially - by @thecodrr in https://github.com/vitest-dev/vitest/issues/2004 and https://github.com/vitest-dev/vitest/issues/3151 (430b4)