Vitest
última 5.0.5
- npm vitest
- github vitest-dev/vitest
Qué hacer
última5.0.5
warning: 1 intervención
- releases, de la 4.1.12 a la 5.0.5
- 6
- requiere intervención
- 1
- arreglos digest que puedes saltarte
- 5
qué ha cambiado, en el orden en que actualizas
v56 releases · 1 featured · 5 digest, 1 requiere intervención
- featured5.0.0
Vitest 5 focuses on performance but has many breaking changes, including Node.js 22 minimum and removed APIs.
warning: requiere intervención · 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]:
previewsmás allá de la 5.0.5
- preview5.1.0-beta.1
note: sin síntesis para esta release más antigualeer las notas de la versión