https://github.com/jill64/playwright-config
🎠Reusable My Playwright Config
https://github.com/jill64/playwright-config
config playwright reusable workflow
Last synced: 6 months ago
JSON representation
🎠Reusable My Playwright Config
- Host: GitHub
- URL: https://github.com/jill64/playwright-config
- Owner: jill64
- License: mit
- Created: 2023-12-01T02:57:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T19:35:01.000Z (6 months ago)
- Last Synced: 2025-04-14T20:34:12.461Z (6 months ago)
- Topics: config, playwright, reusable, workflow
- Language: TypeScript
- Homepage: https://npmjs.com/package/@jill64/playwright-config
- Size: 738 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @jill64/playwright-config
🎠Reusable My Playwright Config
## Installation
```sh
npm i -D @jill64/playwright-config
```
## Usage
playwright.config.ts
```ts
import { extendsConfig } from '@jill64/playwright-config'
export default extendsConfig({
webServer: {
command: 'npm run preview',
port: 4173
}
})
```
## Use Vite Local Preview
```ts
import { extendsConfig, vitePreview } from '@jill64/playwright-config'
export default extendsConfig(vitePreview)
```
## Use Real Server
```ts
import { extendsConfig, vitePreview, branchPreview } from '@jill64/playwright-config'
export default extendsConfig(branchPreview({
provider: 'cloudflare',
fallback: vitePreview
})
```
## GitHub Workflow
```yml
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](LICENSE)