v2.0.0-beta.13
版本发布时间: 2024-07-04 22:04:26
vitest-dev/vitest最新发布版本:v2.1.0-beta.6(2024-08-20 21:19:10)
🚨 Breaking Changes
- vitest: Add "vitest list" API to print collected tests without running them - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6013 (583dd)
🚀 Features
- Add an option to return base64 from page.screenshot - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5993 (be323)
- Expose
parseAst
,parseAstAsync
from vite - by @sheremet-va (f645e) -
browser:
- Add
tripleClick
to interactive api - by @userquin in https://github.com/vitest-dev/vitest/issues/5987 (200a4) - Playwright provider doesn't allow resizing the browser viewport - by @userquin and @sheremet-va in https://github.com/vitest-dev/vitest/issues/5984 (ff978)
- Add
-
config:
- Allow percentage value for workers option - by @syi0808 in https://github.com/vitest-dev/vitest/issues/5982 (b1a27)
-
ui:
- Add action to explorer item to show the test/suite line in the source code tab - by @userquin and @dammy001 in https://github.com/vitest-dev/vitest/issues/5948 (7ec29)
🐞 Bug Fixes
- Don't override uppercase - by @sheremet-va (caef4)
- Clear screen and scrollback on iTerm2 - by @kxalex in https://github.com/vitest-dev/vitest/issues/5978 (d7f23)
- Include pretty-format in @vitest/runner for optimization on npm - by @sheremet-va (42bd4)
- Transpile esnext to node18 to support newest JS and TS features - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4409 (8f65a)
-
api:
- Don't call process.exit manually - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5926 (e9b63)
-
browser:
- Print screenshot path alongside the test error message - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5992 (15289)
- Print correct stack trace in source files - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6003 (62aa7)
- Correctly mock optimized cjs dependencies - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6035 (057b4)
- Support shadow root and svg elements - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6036 (2e3c8)
-
coverage:
- Exclude bench files from coverage - by @kouak in https://github.com/vitest-dev/vitest/issues/5983 (429e1)
- Vite to ignore dynamic import of provider - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5998 (6d884)
- Istanbul to support import attributes - by @Gravitonic in https://github.com/vitest-dev/vitest/issues/6006 (2898a)
- Support overriding
exclude
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5997 (169bc) - Remove work-around for implicit
else
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6014 (368c1)
-
vite-node:
- Expose all envs from .env file, not just with a prefix
VITE_
- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6017 (d87be)
- Expose all envs from .env file, not just with a prefix
-
vitest:
- Allow testing unandled rejection/exception - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6016 (c8d56)
- Show all failed tests when rerunning a test - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6022 (91ba6)