29 lines · 679 B · TypeScript
RawDownload
import { fileURLToPath } from "node:url";import { playwright } from "@vitest/browser-playwright";import { defineConfig, mergeConfig } from "vitest/config"; import viteConfig from "./vite.config"; const srcPath = fileURLToPath(new URL("./src", import.meta.url)); export default mergeConfig(  viteConfig,  defineConfig({    resolve: {      alias: {        "~": srcPath,      },    },    test: {      include: ["src/components/**/*.browser.tsx"],      browser: {        enabled: true,        provider: playwright(),        instances: [{ browser: "chromium" }],        headless: true,      },      testTimeout: 30_000,      hookTimeout: 30_000,    },  }),);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t