web-tools/tests/e2e/browser.ts
2026-10-01 03:03:53 -05:00

6 lines
268 B
TypeScript

import { chromium, type Browser } from 'playwright';
// CHROME_PATH, else the Chromium of `pnpm exec playwright install chromium`
export function launchBrowser(): Promise<Browser> {
return chromium.launch({ executablePath: process.env.CHROME_PATH || undefined });
}