/** * Lightweight helper used by test files that require a Playwright Chromium * installation. Checks for the browser at the filesystem level — no side * effects, no subprocess launch. * * Two ways to skip: * 1. Set PLAYWRIGHT_SKIP=1 in the environment — explicit opt-out, useful for * fresh-clone CI jobs that intentionally skip browser tests. * 2. The Playwright Chromium executable is simply absent from the expected * install path (e.g. the developer never ran `npx playwright install`). * * Usage in test files: * * import { chromiumAvailable, CHROMIUM_SKIP_REASON } from './playwright-available.js'; * * test('my browser test', { skip: !chromiumAvailable, skipMessage: CHROMIUM_SKIP_REASON }, () => { ... }); * * Or for a subtree of tests (t.before guard): * * if (!chromiumAvailable) { t.skip(); return; } */ /** * True when a Playwright Chromium browser binary is present on disk AND the * caller has not set PLAYWRIGHT_SKIP=1. */ export declare const chromiumAvailable: boolean; /** * Human-readable reason string passed to `t.skip()` / `skipMessage` so the * skip is self-documenting in test output. */ export declare const CHROMIUM_SKIP_REASON: string; //# sourceMappingURL=playwright-available.d.ts.map