fix(11.2): WR-04 keep the site gate's summary grep non-fatal
Under set -e a missing TAP summary aborted run_site without a refuse message; the explicit refuse checks now report it. The site's test script pins the TAP reporter so the summary lines exist on Node 23+.
This commit is contained in:
@@ -191,7 +191,8 @@ run_site() {
|
||||
cat "$log" >&2
|
||||
refuse "site: pnpm test failed"
|
||||
}
|
||||
grep -E '^# (tests|pass|fail|skipped|todo|cancelled) ' "$log"
|
||||
# Informational; a missing TAP summary is reported by the refuse checks below.
|
||||
grep -E '^# (tests|pass|fail|skipped|todo|cancelled) ' "$log" || true
|
||||
grep -qx '# fail 0' "$log" || refuse "site: no '# fail 0' line"
|
||||
grep -qE '^# pass [1-9][0-9]*$' "$log" || refuse "site: no passing tests"
|
||||
grep -qx '# skipped 0' "$log" || refuse "site: skipped tests"
|
||||
|
||||
Reference in New Issue
Block a user