v1.0.0-beta.5
版本发布时间: 2023-11-18 17:44:14
vitest-dev/vitest最新发布版本:v3.0.0-beta.2(2024-12-10 18:22:19)
🚨 Breaking Changes
-
coverage: glob based coverage thresholds by @AriPerkkio in https://github.com/vitest-dev/vitest/pull/4442 (18300)
- Refactors coverage thresholds API into new shape and adds support for specifying thresholds for specific files using glob patterns. Moves thresholds related coverage options to
coverage.thresholds
. See https://github.com/vitest-dev/vitest/pull/4442 for detailed list of breaking changes
- Refactors coverage thresholds API into new shape and adds support for specifying thresholds for specific files using glob patterns. Moves thresholds related coverage options to
🚀 Features
- Improve expectTypeOf error messages - by @mmkal, Misha Kaletsky and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4206 (18300)
- Add test.sequential() api - by @dsyddall in https://github.com/vitest-dev/vitest/issues/4512 (c3619)
- Allow custom pools - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4417 (a3fd5)
- expect: ToContain can handle classList and Node.contains - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4239 (ce84f)
🐞 Bug Fixes
- Handle errors thrown in fixtures - by @dsyddall (f6844)
- Default --open to !process.env.CI - by @collinstevens in https://github.com/vitest-dev/vitest/issues/4477 (088a0)
- Disable ESBuild when user config disables it - by @Namchee in https://github.com/vitest-dev/vitest/issues/4492 (9abde)
- Inherit concurrent/sequential in nested suites - by @dsyddall in https://github.com/vitest-dev/vitest/issues/4482 (ca168)
- Provide customTesters to asymmetric matchers - by @sheremet-va (ac665)
- Apply
retry
andbail
from test config file - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4530 (94f9a) -
browser:
- Add vitest/ imports to entries - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4514 (648bc)
- Wait until vite finishes prebundling of vitest dependencies - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4518 (56ee7)
-
example:
- Resolve type error - by @jqkk in https://github.com/vitest-dev/vitest/issues/4515 (2d1b4)
-
expect:
- Print full error if promise is rejected - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4467 (cadb9)
- Don't fail when using jest expect - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4517 (60d6d)
-
vitest:
- Throw an error if vitest is imported using require() - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4466 (e5cf1)
- Use correct type for defineProject to allow usage in mergeConfig - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4498 (7dee8)
- Throw an error if Vite wasn't able to resolve aliased path - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4503 (50333)