Skip to content

v2.1.0-beta.5

Pre-release
Pre-release
Compare
Choose a tag to compare
@sheremet-va sheremet-va released this 12 Aug 11:48
· 230 commits to main since this release
72056b5

   🚀 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