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
))