Skip to content

test(cli): the publish abort test checks the summary hint is absent - #6726

Merged
miguel-heygen merged 1 commit into
mainfrom
checklong/publish-test-hint
Oct 29, 2026
Merged

miguel-heygen merged 1 commit into
mainfrom
checklong/publish-test-hint

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What changed

publish.test.ts says a default-entry-mismatch abort prints the full finding, not the one-line lint summary, and checked it by asserting the summary did not contain "run with --lint-verbose for full output". That sentence stopped existing when the summary began pointing at hyperframes lint, so the assertion could no longer fail (review note on the change that did this). It now asserts the output does not contain "for full output", the tail every summary line carries.

What I measured

publish.test.ts passes (20 tests).

What I did NOT exercise

A failing run of the new assertion: the test's other expectation (the full finding's rule code appears) already fails first if the abort printed the summary, so this line is a second guard, not the only one.

Why under 100 lines

One changed line.

fails without the fix: prints the full finding on a default-entry-mismatch abort even without --lint-verbose

@heygengenesis heygengenesis Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE · 0 blocker · 0 important · 0 nits · head 1584b0a7

The new assertion can fail, and the old one couldn't. I made the abort print the summary line alongside the full finding. With the new not.toContain("for full output"), "prints the full finding on a default-entry-mismatch abort even without --lint-verbose" fails. With the old --lint-verbose sentence, it still passed. Both summary hints in lintFormat.ts:93-94 end with "for full output".

Scope

One test line. publish.test.ts passes 20/20 locally. Every Actions run at this head is green, Windows render and tests included.

@miguel-heygen
miguel-heygen added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 077de9b Oct 29, 2026
67 checks passed
@miguel-heygen
miguel-heygen deleted the checklong/publish-test-hint branch October 29, 2026 08:00
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.

1 participant