v0.32.1
版本发布时间: 2023-06-16 20:21:44
vitest-dev/vitest最新发布版本:v2.1.0-beta.6(2024-08-20 21:19:10)
🚀 Features
- Export
registerConsoleShortcuts
fromvitest/node
- by @deot in https://github.com/vitest-dev/vitest/issues/3563 (bc49b) -
expect: Support
expect.unreachable
- by @fenghan34 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3556 (8e385) -
runner:
describe
/test
name support anonymous function - by @btea in https://github.com/vitest-dev/vitest/issues/3562 (3d436)
🐞 Bug Fixes
- Avoid call stack recursion with large error (fix: #3060) - by @nathanmmiller and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3078 and https://github.com/vitest-dev/vitest/issues/3060 (02196)
- Automatically remove define related configuration - by @btea in https://github.com/vitest-dev/vitest/issues/3552 (368b8)
- Import
performance
fromperf_hooks
- by @Max10240 and wangbaolong.wbl in https://github.com/vitest-dev/vitest/issues/3578 and https://github.com/vitest-dev/vitest/issues/3579 (24ec8) - Revert concordance diff, use jest's diff output - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3582 (9c7ea)
- Typo in config suggestion - by @Krisell in https://github.com/vitest-dev/vitest/issues/3583 (68985)
-
browser:
- Change optimized deps to use
vitest
- by @userquin in https://github.com/vitest-dev/vitest/issues/3580 (b4ac8) - Access vi_inject only if it was injected - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3587 (d9e14)
- Change optimized deps to use
-
mocker:
- Respect namespace import when hoisting vi.mock - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3547 (158c4)
-
ui:
- Navigate to dashboard when re-running tests from coverage page - by @userquin in https://github.com/vitest-dev/vitest/issues/3529 (bc283)
-
vite-node:
- Correctly resolve virtual modules - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3544 (0cbb0)
- Fix errors caused by commonjs export circular references - by @rxliuli in https://github.com/vitest-dev/vitest/issues/3570 (b097c)