Vai al contenuto
verdict:

Vitest

ultima 5.1.2

  • npm vitest
  • github vitest-dev/vitest

Cosa fare

cammino di upgrade

note: si parte dalla 4.1.12, l'ultima release della major precedente, perché non è stata data nessuna versione.

ultima5.1.2

warning: 1 intervento

release, dalla 4.1.12 alla 5.1.2
9
richiede un intervento
1
aggiornamento sicuro
1
correzioni digest che puoi saltare
7

mostra tutte le 45 release

cosa è cambiato, nell'ordine in cui aggiorni

v59 release · 1 featured · 1 notable · 7 digest, 1 richiede un intervento

  • featured5.0.0

    Vitest 5 focuses on performance but has many breaking changes, including Node.js 22 minimum and removed APIs.

    warning: intervento richiesto · 18 breaking changes

    • breaking[1]:loupe.inspect is replaced with pretty-format, so inspected output format changes.
    • breaking[2]:Quotes are removed from string values in the $ variable of test.for/each titles.
    • breaking[3]:The default attachmentsDir moves from .vitest-attachements/ to .vitest/attachments/.
    • breaking[4]:The sequential test 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.poll fails when the function does not resolve in time.
    • breaking[9]:toHaveTextContent becomes 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]:-t now uses > as the separator, and only is calculated once.
    • breaking[14]:Asynchronous assertions that are not awaited now fail the test.
    • breaking[15]:locators.exact is enabled by default in browser mode.
    • breaking[16]:vitest list parses files statically by default.
    • breaking[17]:The blob reporter and --merge-reports default to .vitest/blob/.
    • breaking[18]:JSON and JUnit reporter output files are written to .vitest by default.
  • digest5 release digest · 5.0.1 to 5.0.5
  • notable5.1.0

    Adds test filters --last-failed and --since-last-run, and makes the failure-only trace view the browser default.

    ok: aggiornamento sicuro

  • digest2 release digest · 5.1.1 to 5.1.2

previewsoltre la 5.1.2