Vitest
latest 5.0.5
- npm vitest
- github vitest-dev/vitest
What to do
latest5.0.5
warning: 1 needs action
- releases, 4.1.12 to 5.0.5
- 6
- needs action
- 1
- digest fixes you can skip
- 5
what has changed, in the order you upgrade
v56 releases · 1 featured · 5 digest, 1 needs action
- featured5.0.0
Vitest 5 focuses on performance but has many breaking changes, including Node.js 22 minimum and removed APIs.
warning: action required · 18 breaking changes
- breaking[1]:
loupe.inspectis replaced with pretty-format, so inspected output format changes. - breaking[2]:Quotes are removed from string values in the
$variable oftest.for/eachtitles. - breaking[3]:The default
attachmentsDirmoves from.vitest-attachements/to.vitest/attachments/. - breaking[4]:The
sequentialtest and suite options are removed. - breaking[5]:Locators are represented as objects instead of strings.
- breaking[6]:Deprecated entry points are removed.
- breaking[7]:Node.js 22 and Vite 6.4 are required.
- breaking[8]:
expect.pollfails when the function does not resolve in time. - breaking[9]:
toHaveTextContentbecomes strict. - breaking[10]:The config file is no longer looked up in ancestor directories.
- breaking[11]:Mocks are cleared by default before each test.
- breaking[12]:The webdriverio package is removed.
- breaking[13]:
-tnow uses>as the separator, andonlyis calculated once. - breaking[14]:Asynchronous assertions that are not awaited now fail the test.
- breaking[15]:
locators.exactis enabled by default in browser mode. - breaking[16]:
vitest listparses files statically by default. - breaking[17]:The
blobreporter and--merge-reportsdefault to.vitest/blob/. - breaking[18]:JSON and JUnit reporter output files are written to
.vitestby default.
- breaking[1]:
previewsahead of 5.0.5
- preview5.1.0-beta.1
note: no summary for this older releaseread the release notes