Files
t3code/apps/web/vitest.browser.config.ts
Julius Marminge 4ca4a1f99c Migrate ChatView height browser tests to Vitest + Playwright
- Replace Playwright e2e timeline-height test setup with Vitest browser config
- Add `ChatView.browser.tsx` parity tests for text wrapping and attachment height estimation
- Add row data attributes in `ChatView` to support in-browser measurement targeting
2026-03-05 10:20:34 -08:00

30 lines
683 B
TypeScript

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/ChatView.browser.tsx"],
browser: {
enabled: true,
provider: playwright(),
instances: [{ browser: "chromium" }],
headless: true,
},
testTimeout: 30_000,
hookTimeout: 30_000,
},
}),
);