Vitest 2.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the documentation.
⚠️ This change may cause significant differences in your coverage results compared to Vitest v1. These changes are expected as coverage reporting is now more accurate. See vitest-dev/vitest#5423 for more details.
Previously, the location field pointed to the error location instead of the test location. Now it is aligned with jest and contains the line and column of a test function, but requires includeTaskLocation to be enabled.
⚠️ Vitest no longer unwraps promises in spy.mock.returns. If the function is async or returns a promise, it will always succeed and have a Promise in results. To make migration easier, we introduced spy.mock.settledResults that unwraps promises and expect().toHaveResolved() matcher that accepts unwrapped value.
Vitest 2.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the documentation.
⚠️ This change may cause significant differences in your coverage results compared to Vitest v1. These changes are expected as coverage reporting is now more accurate. See vitest-dev/vitest#5423 for more details.
Previously, the location field pointed to the error location instead of the test location. Now it is aligned with jest and contains the line and column of a test function, but requires includeTaskLocation to be enabled.
⚠️ Vitest no longer unwraps promises in spy.mock.returns. If the function is async or returns a promise, it will always succeed and have a Promise in results. To make migration easier, we introduced spy.mock.settledResults that unwraps promises and expect().toHaveResolved() matcher that accepts unwrapped value.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps vitest and @vitest/coverage-v8. These dependencies needed to be updated together. Updates
vitest
from 1.6.0 to 2.0.1Release notes
Sourced from vitest's releases.
... (truncated)
Commits
16eb6c8
chore: release v2.0.14b03e72
fix(browser): correctly inherit browser config in a workspace (#6054)4d5597d
fix(vitest): print only running files, not every file (#6052)1b150a3
chore: release v2.0.05131992
docs: default pool in the types of 2.0 config (#6043)5611895
chore: release v2.0.0-beta.138f65ae9
fix: transpile esnext to node18 to support newest JS and TS features (#4409)583dd8a
feat(vitest)!: add "vitest list" API to print collected tests without running...f645e48
feat: exposeparseAst
,parseAstAsync
from vite91ba6f9
fix(vitest): show all failed tests when rerunning a test (#6022)Updates
@vitest/coverage-v8
from 1.6.0 to 2.0.1Release notes
Sourced from
@vitest/coverage-v8
's releases.... (truncated)
Commits
16eb6c8
chore: release v2.0.11b150a3
chore: release v2.0.05611895
chore: release v2.0.0-beta.13368c137
fix(coverage): remove work-around for implicitelse
(#6014)05d5f38
chore(deps): update all non-major dependencies (#5957)169bc1f
fix(coverage): support overridingexclude
(#5997)cd9cc6b
chore: release v2.0.0-beta.12fca8b92
chore(deps): updatev8-to-istanbul
(#5958)7080513
fix(coverage): pass thresholds errors tostderr
ofstartVitest()
(#5954)3fd15ba
chore: release v2.0.0-beta.11Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show