Skip to content

browser

Documentation / @wtf/project-vitest / browser

The Vitest configs of a workspace’s tests of the browser, each *.browser.test.ts or *.browser.test.tsx, which the configs of ./config leave out of every run in Node: browserConfig() for a package’s vitest.browser.config.ts, which runs its own in a headless Chromium by Playwright, and browserRootConfig() for the root’s, which runs every package’s in one process (pnpm test:browser).

The tests read the workspace’s packages as the unit suite’s do: from their source by default, or, with TEST_FROM=dist, from what the build wrote.

This module imports @vitest/browser-playwright when it loads, an optional peer: a repo with tests of the browser installs it, with playwright at the version of the browsers its CI’s image holds.

Type Aliases

Functions