Sourced from @vitest/coverage-v8's
releases.
v4.1.0
Vitest 4.1 is out!
This release page lists all changes made to the project during the 4.1 beta. To get a review of all the new features, read our blog post.
🚀 Features
- Return a disposable from doMock() - by
@kirkwaiblingerin vitest-dev/vitest#9332 (e3e65)- Added chai style assertions - by
@ronnakamotoand@sheremet-vain vitest-dev/vitest#8842 (841df)- Update to sinon/fake-timers v15 and add
setTickModeto timer controls - by@atscottand@sheremet-vain vitest-dev/vitest#8726 (4b480)- Expose matcher types - by
@sheremet-vain vitest-dev/vitest#9448 (3e4b9)- Add
toTestSpecificationto reported tasks - by@sheremet-vain vitest-dev/vitest#9464 (1a470)- Show a warning if
vi.mockorvi.hoistedare declared outside of top level of the module - by@sheremet-vain vitest-dev/vitest#9387 (5db54)- Track and display expectedly failed tests (.fails) in UI and CLI - by
@Copilot, sheremet-va and@sheremet-vain vitest-dev/vitest#9476 (77d75)- Support tags - by
@sheremet-vain vitest-dev/vitest#9478 (de7c8)- Implement
aroundEachandaroundAllhooks - by@sheremet-vain vitest-dev/vitest#9450 (2a8cb)- Stabilize experimental features - by
@sheremet-vain vitest-dev/vitest#9529 (b5fd2)- Accept
neworallin--updateflag - by@sheremet-vain vitest-dev/vitest#9543 (a5acf)- Support
metain test options - by@sheremet-vain vitest-dev/vitest#9535 (7d622)- Support type inference with a new
test.extendsyntax - by@sheremet-vain vitest-dev/vitest#9550 (e5385)- Support vite 8 beta, fix type issues in the config with different vite versions - by
@sheremet-vain vitest-dev/vitest#9587 (99028)- Add assertion helper to hide internal stack traces - by
@hi-ogawaand Claude Opus 4.6 in vitest-dev/vitest#9594 (eeb0a)- Store failure screenshots using artifacts API - by
@macariein vitest-dev/vitest#9588 (24603)- Allow
vitest listto statically collect tests instead of running files to collect them - by@sheremet-vain vitest-dev/vitest#9630 (7a8e7)- Add
--detect-async-leaks- by@AriPerkkioin vitest-dev/vitest#9528 (c594d)- Implement
mockThrowandmockThrowOnce- by@thor-juhaszand@sheremet-vain vitest-dev/vitest#9512 (61917)- Support
update: "none"and add docs about snapshots behavior on CI - by@hi-ogawain vitest-dev/vitest#9700 (05f18)- Support playwright
launchOptionswithconnectOptions- by@hi-ogawain vitest-dev/vitest#9702 (f0ff1)- Add
page/locator.markAPI to enhance playwright trace - by@hi-ogawain vitest-dev/vitest#9652 (d0ee5)- api:
- Support tests starting or ending with
testinexperimental_parseSpecification- by@jgillickand Jeremy Gillick in vitest-dev/vitest#9235 (2f367)- Add filters to
createSpecification- by@sheremet-vain vitest-dev/vitest#9336 (c8e6c)- Expose
runTestFilesas alternative torunTestSpecifications- by@sheremet-vain vitest-dev/vitest#9443 (43d76)- Add
allowWriteandallowExecoptions toapi- by@sheremet-vain vitest-dev/vitest#9350 (20e00)- Allow passing down test cases to
toTestSpecification- by@sheremet-vain vitest-dev/vitest#9627 (6f17d)- browser:
- Add
userEvent.wheelAPI - by@macariein vitest-dev/vitest#9188 (66080)- Add
filterNodeoption to prettyDOM for filtering browser assertion error output - by@Copilot, sheremet-va and@sheremet-vain vitest-dev/vitest#9475 (d3220)- Support playwright persistent context - by
@hi-ogawa, Claude Opus 4.6 and@sheremet-vain vitest-dev/vitest#9229 (f865d)- Added
detailsPanelPositionoption and button - by@shairezin vitest-dev/vitest#9525 (c8a31)- Use BlazeDiff instead of pixelmatch - by
@macariein vitest-dev/vitest#9514 (30936)- Add
findElementand enable strict mode in webdriverio and preview - by@sheremet-vain vitest-dev/vitest#9677 (c3f37)- cli:
- Add
@bomb.sh/tab completions - by@AmirSa12and@sheremet-vain vitest-dev/vitest#8639 (200f3)- coverage:
- Support
ignore start/stopignore hints - by@AriPerkkioin vitest-dev/vitest#9204 (e59c9)- Add
coverage.changedoption to report only changed files - by@kykim00and@AriPerkkioin vitest-dev/vitest#9521 (1d939)- experimental:
- Add
onModuleRunnerhook toworker.init- by@sheremet-vain vitest-dev/vitest#9286 (e977f)- Option to disable the module runner - by
@sheremet-vaand@AriPerkkioin vitest-dev/vitest#9210 (9be61)
... (truncated)
4150b91
chore: release v4.1.00c2c013
chore: release v4.1.0-beta.6689a22a
fix(browser): types of getCDPSession and cdp()
(#9716)94eb73b
chore(deps): update eslint packages (#9615)8c96bb0
refator: update links to npmx (#9783)aaf7758
chore: standardize packages README (#9776)57cbe39
chore(deps): update ast-v8-to-istanbul to v1 (#9755)79672d7
chore: release v4.1.0-beta.51d9e3b3
chore: release v4.1.0-beta.44ff8c6f
chore(build): raise build target to the minimum supported, don't bundle
utils...Sourced from vitest's releases.
v4.1.0
Vitest 4.1 is out!
This release page lists all changes made to the project during the 4.1 beta. To get a review of all the new features, read our blog post.
🚀 Features
- Return a disposable from doMock() - by
@kirkwaiblingerin vitest-dev/vitest#9332 (e3e65)- Added chai style assertions - by
@ronnakamotoand@sheremet-vain vitest-dev/vitest#8842 (841df)- Update to sinon/fake-timers v15 and add
setTickModeto timer controls - by@atscottand@sheremet-vain vitest-dev/vitest#8726 (4b480)- Expose matcher types - by
@sheremet-vain vitest-dev/vitest#9448 (3e4b9)- Add
toTestSpecificationto reported tasks - by@sheremet-vain vitest-dev/vitest#9464 (1a470)- Show a warning if
vi.mockorvi.hoistedare declared outside of top level of the module - by@sheremet-vain vitest-dev/vitest#9387 (5db54)- Track and display expectedly failed tests (.fails) in UI and CLI - by
@Copilot, sheremet-va and@sheremet-vain vitest-dev/vitest#9476 (77d75)- Support tags - by
@sheremet-vain vitest-dev/vitest#9478 (de7c8)- Implement
aroundEachandaroundAllhooks - by@sheremet-vain vitest-dev/vitest#9450 (2a8cb)- Stabilize experimental features - by
@sheremet-vain vitest-dev/vitest#9529 (b5fd2)- Accept
neworallin--updateflag - by@sheremet-vain vitest-dev/vitest#9543 (a5acf)- Support
metain test options - by@sheremet-vain vitest-dev/vitest#9535 (7d622)- Support type inference with a new
test.extendsyntax - by@sheremet-vain vitest-dev/vitest#9550 (e5385)- Support vite 8 beta, fix type issues in the config with different vite versions - by
@sheremet-vain vitest-dev/vitest#9587 (99028)- Add assertion helper to hide internal stack traces - by
@hi-ogawaand Claude Opus 4.6 in vitest-dev/vitest#9594 (eeb0a)- Store failure screenshots using artifacts API - by
@macariein vitest-dev/vitest#9588 (24603)- Allow
vitest listto statically collect tests instead of running files to collect them - by@sheremet-vain vitest-dev/vitest#9630 (7a8e7)- Add
--detect-async-leaks- by@AriPerkkioin vitest-dev/vitest#9528 (c594d)- Implement
mockThrowandmockThrowOnce- by@thor-juhaszand@sheremet-vain vitest-dev/vitest#9512 (61917)- Support
update: "none"and add docs about snapshots behavior on CI - by@hi-ogawain vitest-dev/vitest#9700 (05f18)- Support playwright
launchOptionswithconnectOptions- by@hi-ogawain vitest-dev/vitest#9702 (f0ff1)- Add
page/locator.markAPI to enhance playwright trace - by@hi-ogawain vitest-dev/vitest#9652 (d0ee5)- api:
- Support tests starting or ending with
testinexperimental_parseSpecification- by@jgillickand Jeremy Gillick in vitest-dev/vitest#9235 (2f367)- Add filters to
createSpecification- by@sheremet-vain vitest-dev/vitest#9336 (c8e6c)- Expose
runTestFilesas alternative torunTestSpecifications- by@sheremet-vain vitest-dev/vitest#9443 (43d76)- Add
allowWriteandallowExecoptions toapi- by@sheremet-vain vitest-dev/vitest#9350 (20e00)- Allow passing down test cases to
toTestSpecification- by@sheremet-vain vitest-dev/vitest#9627 (6f17d)- browser:
- Add
userEvent.wheelAPI - by@macariein vitest-dev/vitest#9188 (66080)- Add
filterNodeoption to prettyDOM for filtering browser assertion error output - by@Copilot, sheremet-va and@sheremet-vain vitest-dev/vitest#9475 (d3220)- Support playwright persistent context - by
@hi-ogawa, Claude Opus 4.6 and@sheremet-vain vitest-dev/vitest#9229 (f865d)- Added
detailsPanelPositionoption and button - by@shairezin vitest-dev/vitest#9525 (c8a31)- Use BlazeDiff instead of pixelmatch - by
@macariein vitest-dev/vitest#9514 (30936)- Add
findElementand enable strict mode in webdriverio and preview - by@sheremet-vain vitest-dev/vitest#9677 (c3f37)- cli:
- Add
@bomb.sh/tab completions - by@AmirSa12and@sheremet-vain vitest-dev/vitest#8639 (200f3)- coverage:
- Support
ignore start/stopignore hints - by@AriPerkkioin vitest-dev/vitest#9204 (e59c9)- Add
coverage.changedoption to report only changed files - by@kykim00and@AriPerkkioin vitest-dev/vitest#9521 (1d939)- experimental:
- Add
onModuleRunnerhook toworker.init- by@sheremet-vain vitest-dev/vitest#9286 (e977f)- Option to disable the module runner - by
@sheremet-vaand@AriPerkkioin vitest-dev/vitest#9210 (9be61)
... (truncated)
4150b91
chore: release v4.1.01de0aa2
fix: correctly identify concurrent test during static analysis (#9846)c3cac1c
fix: use isAgent check, not just TTY, for watch mode (#9841)eab68ba
chore(deps): update all non-major dependencies (#9824)031f02a
fix: allow catch/finally for async assertion (#9827)3e9e096
feat(reporters): add agent reporter to reduce ai agent
token usage (#9779)0c2c013
chore: release v4.1.0-beta.68181e06
fix: hideSkippedTests should not hide
test.todo (fix #9562)
(#9781)a8216b0
fix: manual and redirect mock shouldn't load or
transform original module...689a22a
fix(browser): types of getCDPSession and cdp()
(#9716)