2.4.2 • Published 8 months ago

@jill64/playwright-config v2.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@jill64/playwright-config

šŸŽ­ 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

2.4.2

8 months ago

2.4.1

11 months ago

2.4.0

1 year ago

2.3.1

1 year ago

2.3.0

1 year ago

2.2.6

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

2.2.1

2 years ago

1.4.2

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago