v0.31.1
版本发布时间: 2023-05-17 22:23:17
vitest-dev/vitest最新发布版本:v3.0.0-beta.2(2024-12-10 18:22:19)
🚀 Features
-
watch: Press
r
should rerun current pattern tests - by @Dunqing and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3305 (69d27)
🐞 Bug Fixes
- Make sure thrown error is an object - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3298 (a93be)
- Remove duplicate type - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3303 (5382e)
- Throw an error, if tests are collected with a different vitest version - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3301 (708b1)
- Support application/x-gzip metadata in html report - by @mzanelee and Michael Lee in https://github.com/vitest-dev/vitest/issues/3333 (5bf7e)
- Correctly restore vi.fn implementation - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3341 (2aff8)
- Display error message correctly - by @btea in https://github.com/vitest-dev/vitest/issues/3314 (a5b3d)
- Exclude
cwd
from test name filter - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3353 (324a9) - Check error type before modifying it - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3385 (c44d9)
-
toMatchInlineSnapshot
fails when file path includes parentheses - by @pacexy in https://github.com/vitest-dev/vitest/issues/3370 and https://github.com/vitest-dev/vitest/issues/3371 (dcf13) - Stop spying on a method, when it's restored - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3386 (2cb1a)
- Test repeats - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3369 (fb8fc)
-
browser:
- Throw an error if test failed to load - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3390 (b354b)
- Keep default export when rewriting exports - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3389 (6501d)
-
cli:
- Improve cac errors when mixing boolean and dot notation - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3302 (93fbd)
-
reporter:
- Prevent deleting test reports stored in coverage directory - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3331 (ddbba)
-
typecheck:
- Correctly resolve custom tsconfig path - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3342 (c53ae)
-
vite-node:
- Allow returning id not wrapped in promise - by @danielroe in https://github.com/vitest-dev/vitest/issues/3312 (9836c)