fix(08-03): call pwa test:e2e directly so --reporter forwards cleanly
Run #10 cleared global-setup but playwright errored 'No tests found': `pnpm test:e2e -- --reporter=list,html` routes through two pnpm script layers (root→pwa) and the `--` survives into `playwright test -- --reporter=list,html`, where playwright treats --reporter as a test-file filter. Call the pwa script directly and append the flag without `--` (validated: 58 specs list vs 0).
This commit is contained in:
@@ -290,8 +290,12 @@ jobs:
|
||||
echo "API ready at :3000"
|
||||
|
||||
# Run the Phase 7 harness across both profiles; preserve its exit code, always kill the API.
|
||||
# Call the pwa test:e2e script DIRECTLY (single pnpm layer) and append --reporter without a
|
||||
# `--` separator: `pnpm <root> test:e2e -- <args>` double-forwards the `--` into
|
||||
# `playwright test -- <args>`, where playwright treats --reporter as a test-file filter →
|
||||
# "No tests found" (run #10). The filtered single-layer form forwards the flag cleanly.
|
||||
set +e
|
||||
pnpm test:e2e -- --reporter=list,html
|
||||
pnpm --filter @familysync/pwa test:e2e --reporter=list,html
|
||||
rc=$?
|
||||
kill "$API_PID" 2>/dev/null || true
|
||||
exit $rc
|
||||
|
||||
Reference in New Issue
Block a user