v0.34.5
版本发布时间: 2023-09-21 21:50:14
vitest-dev/vitest最新发布版本:v2.1.0-beta.6(2024-08-20 21:19:10)
🚀 Features
-
config:
- Add
diff
option - by @fenghan34 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4063 (b50cf)
- Add
-
coverage:
- Add
coverage['100']
to istanbul provider - by @marcelobotega in https://github.com/vitest-dev/vitest/issues/4109 (a7e09)
- Add
-
vitest:
- Support
vi.waitFor
method - by @Dunqing and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4113 (d79cb) - Allow using unprocessed environment files - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4098 (1aee1)
- Support
vi.waitUntil
method - by @Dunqing and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4129 (e0ac9)
- Support
🐞 Bug Fixes
- Update HappyDOMOptions to be compatible with v12 - by @anthonyblond in https://github.com/vitest-dev/vitest/issues/4135 (e8797)
- Print value shape when .resolves and .rejects fails - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4137 (e649d)
-
docs:
- Fix lint errors on onConsoleLog example - by @marcelobotega in https://github.com/vitest-dev/vitest/issues/4116 (ba1e7)
-
expect:
- Improve the error message when nothing is thrown when testing
toThrow
- by @Dunqing in https://github.com/vitest-dev/vitest/issues/3979 (725a0)
- Improve the error message when nothing is thrown when testing
-
happy-dom:
- Catch errors in happy-dom - by @capricorn86 in https://github.com/vitest-dev/vitest/issues/4140 (c21c0)
-
runner:
- Restore leading space in
testNamePattern
- by @segrey in https://github.com/vitest-dev/vitest/issues/4103 and https://github.com/vitest-dev/vitest/issues/4104 (3c305) -
test.extend
doesn't work in hooks without test - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4065 (175c7)
- Restore leading space in
-
snapshot:
- Support mix of normal/with placeholders snapshots - by @RobertPechaCZ in https://github.com/vitest-dev/vitest/issues/4118 (01e01)
-
ui:
- Correctly render ansi diff - by @so1ve and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3810 (8c315)
-
vite-node:
- Export
SourceMapInput
to fix CYCLIC_CROSS_CHUNK_REEXPORT - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4128 (ca70a) - Align vite dependency version with vitest - by @sheremet-va (90ff8)
- Export
-
vitest:
- Rerun tests if a file loaded with query changes - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4130 (a084c)
- Inject "define" in workspaces - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4096 (b4d5a)
🏎 Performance
- Use lazy require in vm pool - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4136 (21ba4)