Open History to see the last commit
1import { fileURLToPath } from "node:url";
2import { playwright } from "@vitest/browser-playwright";
3import { defineConfig, mergeConfig } from "vitest/config";
4
5import viteConfig from "./vite.config";
6
7const srcPath = fileURLToPath(new URL("./src", import.meta.url));
8
9export default mergeConfig(
10 viteConfig,
11 defineConfig({
12 resolve: {
13 alias: {
14 "~": srcPath,
15 },
16 },
17 test: {
18 include: [
19 "src/components/ChatView.browser.tsx",
20 "src/components/KeybindingsToast.browser.tsx",
21 ],
22 browser: {
23 enabled: true,
24 provider: playwright(),
25 instances: [{ browser: "chromium" }],
26 headless: true,
27 },
28 testTimeout: 30_000,
29 hookTimeout: 30_000,
30 },
31 }),
32);