@greendrake/e2e 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ import { spaPlaywright } from '@greendrake/e2e'
|
|
|
19
19
|
export default spaPlaywright({ defaultPort: '5173' })
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
The frontend port is `VITE_PORT`, falling back to `defaultPort` — the
|
|
22
|
+
The frontend port is `VITE_PORT`, falling back to `defaultPort` — the variable the app's own Vite config is expected to pin its dev server to, so the config targets the server the app actually started. Omit `defaultPort` in an app whose harness always supplies `VITE_PORT`: a missing port then throws rather than silently testing whatever happens to be listening on a default.
|
|
23
23
|
|
|
24
24
|
What it returns (a `PlaywrightTestConfig` via `defineConfig`):
|
|
25
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@greendrake/e2e",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Playwright kit for single-page apps: config factories, a same-origin crawler, a clipped-content detector, a polling helper and a layout checker",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Eugene Greendrake <eugene@greendrake.nz>",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@playwright/test": ">=1.49.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@greendrake/dev-config": "0.
|
|
48
|
+
"@greendrake/dev-config": "0.5.0",
|
|
49
49
|
"@playwright/test": "1.60.0",
|
|
50
50
|
"typescript": "6.0.3"
|
|
51
51
|
}
|