Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@vitest/browser

vitest-dev1.4mMIT3.1.1TypeScript support: included

Browser running for Vitest

readme

@vitest/browser

Browser runner for Vitest.

⚠️ This package is experimental. While this package will be released along with other packages, it will not follow SemVer for breaking changes until we mark it as ready.

Development Setup

At project root:

cd test/browser
# runs relevant tests for the browser mode
# useful to confirm everything works fine
pnpm test
# runs tests as the browser mode
# useful during development
pnpm test-fixtures