npm @vitest/browser 2.1.0-beta.5
v2.1.0-beta.5

latest releases: 2.1.1, 2.1.0, 2.1.0-beta.7...
one month ago

   🚀 Features

  • vitest: Add "provide" option  -  by @sheremet-va in #6253 (4409d)
  • browser: Recommend using vitest-browser-vue, vitest-browser-svelte or vitest-browser-react with built-in locators instead of @testing-library/framework packages (d79511)
    • Using built-in locators solves several issues we encountered after the Browser Mode rewrite in Vitest 2:
    • They support Shadow DOM unlike testing-library that relies solely on querySelector and closest
    • Having a single query mechanism between all frameworks and providers allows us to give users easy-to-understand examples which makes documenting it much easier
    • All locators have the retry-ability mechanism built-in when using .click/.fill and other userEvent methods
    • Locators use Playwright implementation which allows us to reuse established selectors from Playwright ecosystem

   🐞 Bug Fixes

    View changes on GitHub

Don't miss a new browser release

NewReleases is sending notifications on new releases.