Skip to content

test: hold the requirement tables to the ranges the startup checks enforce - #619

Merged
danfry1 merged 1 commit into
mainfrom
test/requirements-tables
Nov 6, 2026
Merged

danfry1 merged 1 commit into
mainfrom
test/requirements-tables

Conversation

@danfry1

@danfry1 danfry1 commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Summary

A test holds the hand-written requirement tables (both READMEs, and docs/versioning.md's support policy) to the code the startup checks read. A range change that skips a table now fails CI. Closes #615.

Why

The supported ranges are defined once, in src/node-range.ts and src/peer-requirements.ts, and enforced at startup and by doctor. The landing page and install page were already checked against them (site-support.test.ts), but the README and versioning.md tables were copied by hand with nothing holding them.

Changes

  • tests/requirements-tables.test.ts checks every row: each Node line's floor, the Vitest major, the Vite floor, React, the React Native range, the Expo SDKs and the RNTL majors. Each document keeps its own wording.
  • It also checks that the repository and package READMEs carry the same Requirements section.

@danfry1 danfry1 added this to the 0.15.0 milestone Nov 6, 2026
@danfry1
danfry1 merged commit 66de973 into main Nov 6, 2026
38 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Requirement tables generated from (or tested against) peer-requirements

1 participant