Luigit
repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by admin

extensions/canvas/playwright.config.ts

Raw
import { tmpdir } from "node:os";
import { join } from "node:path";
import { defineConfig, type PlaywrightTestConfig } from "@playwright/test";

const executablePath = process.env["PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH"];
const config: PlaywrightTestConfig = defineConfig({
	testDir: "./__e2e__",
	fullyParallel: false,
	workers: 1,
	reporter: "list",
	outputDir: join(tmpdir(), "pi-ext-canvas-playwright"),
	use: {
		browserName: "chromium",
		headless: true,
		launchOptions: {
			...(executablePath ? { executablePath } : {}),
			...(process.platform === "android" ? { args: ["--no-sandbox"] } : {}),
		},
	},
});
export default config;