Skip to content

test(init): assert the two-line onboarding trailer - #566

Merged
theCodeDrift merged 1 commit into
mainfrom
552-fix-trailer-tests
Oct 21, 2026
Merged

theCodeDrift merged 1 commit into
mainfrom
552-fix-trailer-tests

Conversation

@theCodeDrift

Copy link
Copy Markdown
Member

main is red after #559 and #563 landed (Validate run 39571233594 on f8e062c). Two tests that merged while that stack was open still asserted the old one-sentence trailer:

  • init-telemetry-notice.test.ts: expected the last console.log entry to match /^In your AI tool, /. The trailer is now one two-line console.log call, so the test compares that entry with getOnboardTrailer() itself, which holds at any colour level.
  • init-no-interactive.test.ts (commit-before-your-agent banner): looked for ask to onboard with Taskless to check the banner prints above the trailer. It now looks for ONBOARD_PROMPT.

Test-only; no product change. Both orderings the tests protect (telemetry notice before the trailer, commit banner above it) still hold. Full CLI suite passes locally (137 files, 2577 tests), along with typecheck and lint.

Refs #552

…ed beside it

#559 changed the trailer while two tests asserting the old sentence were
landing on main, so main went red after the stack merged. The telemetry
test now compares its last console.log entry with getOnboardTrailer(),
and the commit-banner ordering test looks for ONBOARD_PROMPT.
@theCodeDrift
theCodeDrift force-pushed the 552-fix-trailer-tests branch from b03abfd to 5bd720e Compare October 21, 2026 08:54
@theCodeDrift
theCodeDrift merged commit 8de568f into main Oct 21, 2026
4 checks passed
@theCodeDrift
theCodeDrift deleted the 552-fix-trailer-tests branch October 21, 2026 08:57
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