Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jill64/playwright-config
🎠Reusable My Playwright Config
https://github.com/jill64/playwright-config
config playwright reusable workflow
Last synced: 3 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 (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-05T03:25:23.000Z (3 months ago)
- Last Synced: 2024-11-07T12:03:59.931Z (3 months ago)
- Topics: config, playwright, reusable, workflow
- Language: TypeScript
- Homepage: https://npmjs.com/package/@jill64/playwright-config
- Size: 479 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
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: CIon: push
jobs:
test:
uses: jill64/playwright-config/.github/workflows/[email protected]
with:
pre-test: npm run build
test-command: npx playwright test
provider: cloudflare
```## License
[MIT](LICENSE)