$ npm install @vitest/browser
This package exposes utilities to make your own browser provider. If you just need to run tests in the browser, consider installing one of these packages instead:
GitHub | Documentation