Repository navigation
docs(testing): the scripts' pure halves, and why they moved out - #145
Merged
Merged
Conversation
Three gates are scripts, and a script that runs at import time cannot be tested. This session moved the decision out of three of them; the table records which, and what each test holds: - `generate-go-limits.ts` → `scripts/go-limits-html.ts`: which table is an allowance (by header, not position), the refusal when the page carries none, and the round trip through the real parser; - `check-vendor-version.ts` → `scripts/vendor-version.ts`: the constant is found, and "read nothing" is distinguishable from "passed"; - `publish-scoped.ts` → `scripts/wrapper-forwarder.ts`: the retired alias's entry LINKS against the built barrel in a real Node process. Two of the three had already passed while wrong — the version gate twice, and the Go-limits reader when the docs moved to HTML — which is the argument: **a decision that lives in a top-level-await script is exercised only by the vendor's schedule.** It is the same pattern the `utils/` gate enforces inside `src/`, applied to the one place it had not reached.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three gates are scripts, and a script that runs at import time cannot be tested. This session moved the decision out of three of them; this records which, and what each test holds:
generate-go-limits.tsscripts/go-limits-html.tscheck-vendor-version.tsscripts/vendor-version.tspublish-scoped.tsscripts/wrapper-forwarder.tsTwo of the three had already passed while wrong — the version gate twice, and the Go-limits reader when the docs moved to HTML — which is the argument: a decision that lives in a top-level-await script is exercised only by the vendor's schedule.
It is the same pattern the
utils/gate enforces insidesrc/, applied to the one place it had not reached.