Skip to content

test: fix ScrollableViewport specs failing in CI - #125

Merged
nimrodkor merged 1 commit into
mainfrom
fix-scrollable-viewport-ci-specs
Aug 25, 2026
Merged

nimrodkor merged 1 commit into
mainfrom
fix-scrollable-viewport-ci-specs

Conversation

@nimrodkor

@nimrodkor nimrodkor commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Render the ScrollableViewport spec harness with Ink's debug option. Ink's is-in-ci sees CI=true on the runner and holds every stdout write back until unmount, so the harness read an empty stream and each assertion got back the bare "BANNER" prefix lastFrame prepends. Debug mode writes whole frames regardless of CI — the same thing the shared renderInk helper already does, which is why ReviewMenu.spec.tsx was unaffected.

Test plan

  • CI=true npm test passes locally (86/86)
  • CI run on this PR is green

🤖 Generated with Claude Code

Ink's `is-in-ci` sees `CI=true` on the runner and holds every write back
until unmount, so the harness read an empty stdout and each assertion got
back the bare "BANNER" prefix `lastFrame` prepends.

Render in debug mode, which writes whole frames regardless of CI — the
same thing the shared `renderInk` helper already does.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@baz-reviewer

baz-reviewer Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Generated description

Configure the ScrollableViewport test harness to render Ink frames immediately in CI. Align its render setup with the shared debug-enabled rendering behavior so assertions receive complete frames instead of an empty stream.

Latest Contributors(2)
UserCommitDate
nimrod@baz.cotest: fix ScrollableVi...August 25, 2026
blewis@hirundo.iofix: make comment revi...August 25, 2026

Review this PR on Baz | Customize your next review

@baz-reviewer

baz-reviewer Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

⚠️ Advanced Security cannot run on this PR.

Your organization's Advanced Security usage limit has been reached. To continue using Advanced Security reviews, please upgrade your plan or increase your usage limits in your account settings.

@nimrodkor
nimrodkor merged commit f93f6f8 into main Aug 25, 2026
6 checks passed
@nimrodkor
nimrodkor deleted the fix-scrollable-viewport-ci-specs branch August 25, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants