fix(08-03): call pwa test:e2e directly so --reporter forwards cleanly
CI / fast-checks (pull_request) Successful in 49s
CI / api (pull_request) Successful in 1m0s
CI / harness (pull_request) Successful in 3m26s

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:
Lucas Berger
2026-06-11 15:43:09 -04:00
parent e486c6be9f
commit 03e8088238
+5 -1
View File
@@ -290,8 +290,12 @@ jobs:
echo "API ready at :3000" echo "API ready at :3000"
# Run the Phase 7 harness across both profiles; preserve its exit code, always kill the API. # 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 set +e
pnpm test:e2e -- --reporter=list,html pnpm --filter @familysync/pwa test:e2e --reporter=list,html
rc=$? rc=$?
kill "$API_PID" 2>/dev/null || true kill "$API_PID" 2>/dev/null || true
exit $rc exit $rc