You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b7d72c9
Browse filesBrowse the repository at this point in the historyBrowse files
feat(cli): check --budget stops the whole check in time and reports what it found (#7245)
* feat(cli): check --budget stops the whole check in time and reports what it found
* fix(cli): keep check's comment share where it was
* fix(cli): a --budget that runs out before any check step is waiting is not an unhandled rejection
Copy file name to clipboardExpand all lines: docs/packages/cli.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1249,6 +1249,7 @@ cover every finding from the full check.
1249
1249
|`--collapse-static` / `--no-collapse-static`| Fold a repeated static finding into one row (default: on) |
1250
1250
|`--tolerance`| Allowed overflow in px before reporting (default 2) |
1251
1251
|`--timeout`| Render-ready budget in ms; also raises page navigation above its 10s floor (default 45000, as snapshot and render) |
1252
+
|`--budget <ms\|90s\|8m>`| Stop the whole check this long after it starts (at least 30s) and report what it found, with `check_budget_reached` naming the phase it was in. For hosts with their own time limit. |
1252
1253
|`--no-contrast`| Skip the WCAG pass while iterating |
1253
1254
|`--strict`| Exit non-zero on warnings too (default: errors only) |
1254
1255
|`--caption-zone "<x0=..;y0=..;x1=..;y1=..>"`| Opt-in band gate. Flags a text element's DOM box that overlaps the fractional band. Optional `severity` and `seek`. |
return`${PHASE_LABELS[phase]}${seconds}${BEFORE_DEADLINE.has(phase) ? " (before the deadline)" : ""}`;
107
138
});
108
-
return` (no progress for ${this.idleMs/1000} s after Chrome was ready), while ${PHASE_LABELS[this.work.phase]}${this.work.detail ? ` (${this.work.detail})` : ""}. Seconds per phase: ${parts.join(", ")}.`;
139
+
return` while ${PHASE_LABELS[this.work.phase]}${this.work.detail ? ` (${this.work.detail})` : ""}. Seconds per phase: ${parts.join(", ")}.`;
0 commit comments