v2.0.0-beta.13
Pre-release
Pre-release
github-actions
released this
04 Jul 14:04
·
477 commits
to main
since this release
🚨 Breaking Changes
- vitest: Add "vitest list" API to print collected tests without running them - by @sheremet-va in #6013 (583dd)
- api:
- Don't call process.exit manually - by @sheremet-va in #5926 (e9b63)
🚀 Features
- Add an option to return base64 from page.screenshot - by @sheremet-va in #5993 (be323)
- Expose
parseAst
,parseAstAsync
from vite - by @sheremet-va (f645e) - browser:
- config:
- ui:
🐞 Bug Fixes
- Don't override uppercase - by @sheremet-va (caef4)
- Clear screen and scrollback on iTerm2 - by @kxalex in #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 #4409 (8f65a)
- browser:
- Print screenshot path alongside the test error message - by @sheremet-va in #5992 (15289)
- Print correct stack trace in source files - by @sheremet-va in #6003 (62aa7)
- Correctly mock optimized cjs dependencies - by @sheremet-va in #6035 (057b4)
- Support shadow root and svg elements - by @sheremet-va in #6036 (2e3c8)
- coverage:
- Exclude bench files from coverage - by @kouak in #5983 (429e1)
- Vite to ignore dynamic import of provider - by @AriPerkkio in #5998 (6d884)
- Istanbul to support import attributes - by @Gravitonic in #6006 (2898a)
- Support overriding
exclude
- by @AriPerkkio in #5997 (169bc) - Remove work-around for implicit
else
- by @AriPerkkio in #6014 (368c1)
- vite-node:
- Expose all envs from .env file, not just with a prefix
VITE_
- by @sheremet-va in #6017 (d87be)
- Expose all envs from .env file, not just with a prefix
- vitest:
- Allow testing unandled rejection/exception - by @sheremet-va in #6016 (c8d56)
- Show all failed tests when rerunning a test - by @sheremet-va in #6022 (91ba6)