@jill64/playwright-config
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

@jill64/playwright-config

npm-version npm-license npm-download-month npm-min-size duplex-playwright.yml run-playwright.yml

🎭 Reusable My Playwright Config

Installation

npm i -D @jill64/playwright-config

Usage

playwright.config.ts

import { extendsConfig } from '@jill64/playwright-config'

export default extendsConfig({
  webServer: {
    command: 'npm run preview',
    port: 4173
  }
})

Use Vite Local Preview

import { extendsConfig, vitePreview } from '@jill64/playwright-config'

export default extendsConfig(vitePreview)

Use Real Server

import { extendsConfig, vitePreview, branchPreview } from '@jill64/playwright-config'

export default extendsConfig(branchPreview({
  provider: 'cloudflare',
  fallback: vitePreview
})

GitHub Workflow

name: CI

on: push

jobs:
  test:
    uses: jill64/playwright-config/.github/workflows/run-playwright.yml@v2.1.0
    with:
      pre-test: npm run build
      test-command: npx playwright test
      provider: cloudflare

License

MIT

Package Sidebar

Install

npm i @jill64/playwright-config

Weekly Downloads

29,508

Version

2.3.0

License

MIT

Unpacked Size

8.75 kB

Total Files

11

Last publish

Collaborators

  • jill64