Releases: vitest-dev/vitest
Releases · vitest-dev/vitest
v4.0.15
🚀 Experimental Features
- cache: Add opt-out on a plugin level, fix internal root cache - by @sheremet-va in #9154 (a68f7)
- reporters: Print import duration breakdown - by @sheremet-va in #9105 (122ff)
🐞 Bug Fixes
- Keep built-in id as is in bun and deno - by @sheremet-va in #9117 (075ab)
- Use
optimizeDeps.rolldownOptionsto fix depreated warning + fixssr.external: true- by @hi-ogawa in #9121 (fd8bd) - Fix external behavior with
deps.optimizer- by @hi-ogawa in #9125 (4c754) - Very minor typo in "Chrome DevTools Protocol" - by @HowToTestFrontend in #9146 (20997)
- browser: Run
toMatchScreenshotonly once when used withexpect.element- by @macarie in #9132 (0d2e7) - coverage: Istanbul provider to not break source maps - by @AriPerkkio in #9040 (e4ca9)
- deps: Update dependency tinyexec to v1 - in #9122 (fd786)
- docs: Remove
--browser.providerfrom docs - by @sheremet-va in #9115 (120b3) - expect: Preserve
currentTestNamein extended matchers - by @macarie in #9106 (e4345) - pool: Terminate workers on
CTRL+cforceful exits - by @AriPerkkio in #9140 (d57d8) - reporters: Show project in github reporter - by @sheremet-va in #9138 (bb65e)
- spy: Do not mock overriden method, if parent was automocked - by @sheremet-va in #9116 (1a246)
- web-worker: MessagePort objects passed to Worker.postMessage work when clone === "native" - by @whitphx in #9118 (deee8)
View changes on GitHub
v4.0.14
🚀 Experimental Features
- browser: Expose
utils.configurePrettyDOM- by @sheremet-va in #9103 (2cc34) - runner: Add full names to tasks - by @macarie in #9087 (821aa)
- ui: Add tabbed failure view for
toMatchScreenshotwith comparison slider - by @macarie in #8813 (c37c2)
🐞 Bug Fixes
- Externalize before caching - by @sheremet-va in #9077 (e1b2e)
- Collect the duration of external imports - by @sheremet-va in #9097 (3326c)
- Rename
collecttoimport, removeprepare- by @sheremet-va in #9091 (1256b) - browser:
- Unsubscribe
onCancelon rpc destroy - by @AriPerkkio in #9088 (f5b72) - Revert the viewport scaling in non-ui mode #9018 - by @sheremet-va in #9072 and #9018 (64502)
- Unsubscribe
- coverage:
- expect:
- jsdom:
- Reuse abort signals if possible - by @sheremet-va in #9090 (2c468)
- pool:
- Init
VITEST_POOL_ID+VITEST_WORKER_IDbefore environment setup - by @AriPerkkio in #9085 (37918)
- Init
- web-worker:
postMessageto send ports to workers - by @whitphx and @AriPerkkio in #9078 (9d176)
🏎 Performance
- Replace
debugwithobug- by @sxzz and @AriPerkkio in #9057 (acc51)
View changes on GitHub
v4.0.13
🐞 Bug Fixes
- types:
- Don't use type from Vite 7.1 - by @sheremet-va in #9071 (6356b)
- Don't import node.js dependent types in vitest/browser - by @sheremet-va in #9068 (332af)
🏎 Performance
- Avoid fetchModule roundtrip if the module is cached - by @sheremet-va in #9075 (b27e0)
- experimental: If
fsCacheModuleis enabled, read from the memory when possible - by @sheremet-va in #9076 (6b9a1)
View changes on GitHub
v4.0.12
🐞 Bug Fixes
- Inherit
fsModuleCachePathby default - by @sheremet-va in #9063 (9a8bc) - Don't import from
@opentelemetry/apiin public types - by @sheremet-va in #9066 (e944a)
View changes on GitHub
v4.0.11
🚀 Experimental Features
- api: Add extensible test artifact API - by @macarie in #8987 (77292)
- See more at https://vitest.dev/api/advanced/artifacts
- expect: Provide
taskinMatchState- by @macarie in #9022 (afd1f) - experimental: Support OpenTelemetry traces - by @sheremet-va in #8994 (d6d33)
- See more at https://vitest.dev/guide/open-telemetry
🏎 Performance
- experimental: Add file system cache - by @sheremet-va in #9026 (1b147)
View changes on GitHub
v4.0.10
🐞 Bug Fixes
- Remove
onCancelwhen worker is terminated - by @sheremet-va in #9033 (6d7f0) - browser:
- bun:
- Parsing of stack trace for bun runtime - by @nazarhussain in #9032 (f3ec6)
- core:
- Prevent starting new run when cancelling - by @AriPerkkio in #8991 (eb98d)
- pool:
- Prevent writing to closed worker - by @AriPerkkio and @sheremet-va in #9023 (042c6)
- reporters:
- Report correct test run duration at the end - by @sheremet-va in #8969 (bc3a6)
- ui:
View changes on GitHub
v4.0.9
🚀 Experimental Features
- expect: Add Set support to toBeOneOf - by @tim-we and @sheremet-va in #8906 (a415d)
🐞 Bug Fixes
- browser: Add favicon icons to the browser mode ui - by @userquin in #8972 (353ee)
- forks: Increase worker start timeout - by @AriPerkkio in #9027 (5e750)
- jsdom: Cloned request is an instance of
Request- by @sheremet-va in #8985 (506a9) - ui: Collect file/suite/test duration correctly - by @userquin in #8976 (8016d)
View changes on GitHub
v4.0.8
🐞 Bug Fixes
- Workaround
noExternalmerging bug on Vite 6 - by @hi-ogawa in #8950 (bcb13) - Missed context.d.ts file - by @termorey in #8965 (9044d)
- Incorrect error message for non-awaited
expect.element()- by @StyleShit in #8954 (9638d) - browser: Cleanup frame-ancestors from CSP header at coverage middleware - by @userquin in #8941 (1f730)
- deps: Update all non-major dependencies - by @sheremet-va in #8636 (da8b9)
- forks: Do not fail with Windows Defender enabled - by @sheremet-va in #8967 (c79f4)
- runner: Properly encode Uint8Array body in annotations - by @Livan-pro in #8951 (997ca)
- spy: Copy static properties if spy is initialised with
vi.fn(), fix types forvi.spyOn(obj, class)- by @sheremet-va in #8956 (75e7f) - webdriverio: When no argument is passed to the .click interaction command, the webdriver command should also have no argument - by @julienw in #8937 (069e6)
View changes on GitHub
v4.0.7
🐞 Bug Fixes
- Bind
processin case global is overwritten - by @AriPerkkio in #8916 (6240d) - Create environment once per worker with
isolate: false- by @sheremet-va in #8915 (c9078) - Add Locator as a possible element type in
toContainElement()matcher - by @vitalybaev in #8910 and #8927 (35a27) - browser: Inherit
isolateoption, deprecatebrowser.isolate/browser.fileParallelism- by @sheremet-va in #8890 (9d2b4) - cli: Parse
--execArgvas array - by @AriPerkkio in #8924 (751c3) - jsdom: Support
URL.createObjectURL,FormData.set(prop, blob)- by @sheremet-va in #8935 (a1b73) - pool: Avoid
--requireargument when running in deno - by @pi0 in #8897 (d41fa) - typecheck: Handle re-runs outside
tsc- by @AriPerkkio in #8920 (fdb2e)
🏎 Performance
- pool:
- Sort test files by project by default - by @AriPerkkio in #8914 (680a6)
- reporters:
- Optimize getting the tests stats - by @Connormiha in #8908 (06d62)
- Remove unnecessary
Array.fromcall - by @Connormiha in #8907 (b6014)
View changes on GitHub
v4.0.6
🐞 Bug Fixes
- Don't merge errors with different diffs for reporting - by @hi-ogawa in #8871 (3e19f)
- Do not throw when importing a type from an external package - by @sheremet-va in #8875 (7e6c3)
- Improve spying types - by @sheremet-va in #8878 (ca041)
- Reuse the same environment when
isolateandfileParallelismare false - by @sheremet-va in #8889 (31706) - browser:
- coverage:
- Prevent filtering out virtual files before remapping to sources - by @AriPerkkio in #8860 (e3b77)
- happy-dom:
- Properly teardown additional keys - by @sheremet-va in #8888 (10a06)
- jsdom:
- Pass down Node.js
FormDatatoRequest- by @sheremet-va in #8880 (197ca)
- Pass down Node.js