Co-authored-by: Claude Opus 4.6 <[email protected]> Co-authored-by: codex <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
33 lines
755 B
TypeScript
33 lines
755 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",
|
|
"src/components/KeybindingsToast.browser.tsx",
|
|
],
|
|
browser: {
|
|
enabled: true,
|
|
provider: playwright(),
|
|
instances: [{ browser: "chromium" }],
|
|
headless: true,
|
|
},
|
|
testTimeout: 30_000,
|
|
hookTimeout: 30_000,
|
|
},
|
|
}),
|
|
);
|