Repository navigation
test(cli): the search golden counts the status page templates - #11993
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approved pending CI: CI has not finished on this head yet, and its Node test shards are still queued or running.
The new total matches what the CLI prints on main. The search search, text and JSON test fails on the base with matchCount 118 expected and 119 received, and passes on this head, both alone and merged with the current main. The extra result is the stable not-found page template, so the isolation guard still catches any experimental result.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: on
main,search search, text and JSONfails. Verified: on the base, the JSON snapshot fails only onmatchCount, 118 expected and 119 received. - Claim: the not-found, access-denied and error page templates add one more result for
astryx search search. Verified: the added result is the not-found page template, 101st of 119; the other two do not match the query. - Claim: the stored golden still counts the earlier total. Verified: both goldens on the base say 118.
- Claim: every pull request whose CI runs on a merge with
mainfails this test. Verified for any tree with these templates and the old golden, by the base run. - Claim: the 20 listed results do not change; only the total does. Verified: the diff changes only
matchCountand the text heading, and the test passes on the head. - Claim: the goldens were regenerated with the test's update mode. Consistent: both goldens equal the CLI's output on the head.
- Claim: the total goes from 118 to 119 in the JSON and in the text heading, and no other line changes. Verified by the diff.
- Claim: the test fails at the merge that added the status page templates and passes on the commit before it. Verified indirectly: the base is off by exactly one result, and that result is the not-found template from that merge.
- Claim:
experimental-isolation.test.mjspasses 51 of 51. Verified on the head. - Claim: only the two golden files change, with no source, workflow, action or CI script changes. Verified.
- Claim: no public API, product behavior, visual direction or policy change. Verified: the goldens are not in the published package.
- Claim: public text carries no internal context. Verified.
- File
packages/cli/test/__golden__/no-icon-set/search-search.json: clear. - File
packages/cli/test/__golden__/no-icon-set/search-search.txt: clear, and its total matches the JSON.
PR Analysis Report🔎 Preview ·
|
Maintainer impact
On
main,packages/cli/test/experimental-isolation.test.mjs > with no icon set, stable output is unchanged > search search, text and JSONfails. The not-found, access-denied and error page templates added one more result forastryx search search, and the stored golden still counts the earlier total. Every pull request whose CI runs on a merge withmainfails this test in its Node shard, whatever it changes.Intended invariant
The golden output for
astryx search searchin a project with no icon set matches what the CLI prints onmain. The 20 listed results do not change; only the total does.Change
Regenerate the two golden files with
vitest run packages/cli/test/experimental-isolation.test.mjs -u. The total goes from 118 to 119 in the JSON (matchCount) and in the text heading ("20 of 119"). No other line changes.Evidence
mainat the merge that added the status page templates, and passes on the commit before it.experimental-isolation.test.mjspasses, 51 of 51.Scope
Components: CLI test golden files (
packages/cli/test/__golden__/no-icon-set)Testing
vitest run packages/cli/test/experimental-isolation.test.mjs: 51 passed.