refactor: introduce pnpm workspace (#34241)

Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Stephen Zhou
2026-03-30 10:34:50 +00:00
committed by GitHub
co-authored by yyh autofix-ci[bot]
parent 1aaba80211
commit 52a4bea88f
42 changed files with 4060 additions and 6942 deletions
+13 -10
View File
@@ -19,15 +19,18 @@ It tests:
- `uv`
- Docker
Run the following commands from the repository root.
Install Playwright browsers once:
```bash
cd e2e
pnpm install
pnpm e2e:install
pnpm check
pnpm -C e2e e2e:install
pnpm -C e2e check
```
`pnpm install` is resolved through the repository workspace and uses the shared root lockfile plus `pnpm-workspace.yaml`.
Use `pnpm check` as the default local verification step after editing E2E TypeScript, Cucumber support code, or feature glue. It runs formatting, linting, and type checks for this package.
Common commands:
@@ -35,20 +38,20 @@ Common commands:
```bash
# authenticated-only regression (default excludes @fresh)
# expects backend API, frontend artifact, and middleware stack to already be running
pnpm e2e
pnpm -C e2e e2e
# full reset + fresh install + authenticated scenarios
# starts required middleware/dependencies for you
pnpm e2e:full
pnpm -C e2e e2e:full
# run a tagged subset
pnpm e2e -- --tags @smoke
pnpm -C e2e e2e -- --tags @smoke
# headed browser
pnpm e2e:headed -- --tags @smoke
pnpm -C e2e e2e:headed -- --tags @smoke
# slow down browser actions for local debugging
E2E_SLOW_MO=500 pnpm e2e:headed -- --tags @smoke
E2E_SLOW_MO=500 pnpm -C e2e e2e:headed -- --tags @smoke
```
Frontend artifact behavior:
@@ -101,7 +104,7 @@ Because of that, the `@fresh` install scenario only runs in the `pnpm e2e:full*`
Reset all persisted E2E state:
```bash
pnpm e2e:reset
pnpm -C e2e e2e:reset
```
This removes:
@@ -117,7 +120,7 @@ This removes:
Start the full middleware stack:
```bash
pnpm e2e:middleware:up
pnpm -C e2e e2e:middleware:up
```
Stop the full middleware stack:
+6 -16
View File
@@ -14,21 +14,11 @@
"e2e:reset": "tsx ./scripts/setup.ts reset"
},
"devDependencies": {
"@cucumber/cucumber": "12.7.0",
"@playwright/test": "1.51.1",
"@types/node": "25.5.0",
"tsx": "4.21.0",
"typescript": "5.9.3",
"vite-plus": "latest"
},
"engines": {
"node": "^22.22.1"
},
"packageManager": "pnpm@10.32.1",
"pnpm": {
"overrides": {
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
"vitest": "npm:@voidzero-dev/vite-plus-test@latest"
}
"@cucumber/cucumber": "catalog:",
"@playwright/test": "catalog:",
"@types/node": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"vite-plus": "catalog:"
}
}
-2632
View File
File diff suppressed because it is too large Load Diff