Ensure all redirect rules are tested
test(docs-infra): ensure all redirect rules are tested (#42452)
Ensure all redirect rules are testedtestensure redirect rules tested docs infra
Committed by gkalpak
commit message
test(docs-infra): ensure all redirect rules are tested (#42452)
This commit adds a test assertion to verify that all redirect rules
defined in `firebase.json` are tested, i.e. that each rule is applied to
at least one testcase from `URLS_TO_REDIRECT.txt`.
This will ensure that any redirect rules added in the future will be
tested.
PR Close #42452Editor assessment
This is an exemplar. The subject `test(docs-infra): ensure all redirect rules are tested` is imperative, understandable alone, and pairs an accurate type with a scope that names the affected area. The body teaches: it states precisely what the new assertion verifies (every rule in `firebase.json` is exercised by at least one case from `URLS_TO_REDIRECT.txt`) and why it exists (future redirect rules cannot silently go untested). Footers are clean — a single well-formed `PR Close #42452` trailer. Style hygiene holds: imperative mood, no trailing period, reasonable length, no pasted material. A reader learns the mechanism and the motivation without opening any diff.