mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
24 lines
546 B
TypeScript
24 lines
546 B
TypeScript
import { playwright } from "@vitest/browser-playwright";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
const headless = process.env.BROWSER_HEADLESS === "true";
|
|
|
|
export default defineConfig({
|
|
plugins: [tsconfigPaths()],
|
|
test: {
|
|
name: "browser",
|
|
include: ["**/*.browser.test.{ts,tsx}"],
|
|
browser: {
|
|
provider: playwright(),
|
|
enabled: true,
|
|
headless,
|
|
instances: [{ browser: "chromium" }],
|
|
},
|
|
css: {
|
|
include: /.+/,
|
|
},
|
|
setupFiles: ["./app/browser-test-setup.ts"],
|
|
},
|
|
});
|