@jill64/playwright-config
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -1,2 +0,3 @@ | ||
import type { Config } from '@playwright/test'; | ||
export declare const extendsConfig: (config: Config) => import("@playwright/test").PlaywrightTestConfig<{}, {}>; | ||
export { branchPreview } from './branchPreview.js'; | ||
export { extendsConfig } from './extendsConfig.js'; | ||
export { vitePreview } from './vitePreview.js'; |
@@ -1,31 +0,3 @@ | ||
import { defineConfig, devices } from '@playwright/test'; | ||
import process from 'node:process'; | ||
export const extendsConfig = (config) => defineConfig({ | ||
testDir: 'tests', | ||
retries: process.env.CI ? 2 : 0, | ||
fullyParallel: true, | ||
workers: '100%', | ||
projects: [ | ||
{ | ||
name: 'chromium', | ||
use: devices['Desktop Chrome'] | ||
}, | ||
{ | ||
name: 'firefox', | ||
use: devices['Desktop Firefox'] | ||
}, | ||
{ | ||
name: 'webkit', | ||
use: devices['Desktop Safari'] | ||
}, | ||
{ | ||
name: 'Mobile Chrome', | ||
use: devices['Pixel 5'] | ||
}, | ||
{ | ||
name: 'Mobile Safari', | ||
use: devices['iPhone 12'] | ||
} | ||
], | ||
...config | ||
}); | ||
export { branchPreview } from './branchPreview.js'; | ||
export { extendsConfig } from './extendsConfig.js'; | ||
export { vitePreview } from './vitePreview.js'; |
{ | ||
"name": "@jill64/playwright-config", | ||
"description": "🎭 Reusable My Playwright Config", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"type": "module", | ||
@@ -45,8 +45,8 @@ "main": "dist/index.js", | ||
"@jill64/prettier-config": "1.0.0", | ||
"@jill64/eslint-config-ts": "1.0.0", | ||
"@jill64/eslint-config-ts": "1.0.1", | ||
"@playwright/test": "1.40.1", | ||
"@types/node": "20.10.3", | ||
"typescript": "5.3.2", | ||
"vitest": "1.0.1" | ||
"@types/node": "20.10.4", | ||
"typescript": "5.3.3", | ||
"vitest": "1.0.2" | ||
} | ||
} |
@@ -31,1 +31,20 @@ <!----- BEGIN GHOST DOCS HEADER -----> | ||
``` | ||
## 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 | ||
)) | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6092
11
83
50