Skip to content

test(tui): cover hidden LSP sidebar section (#53) - #58

Closed
quickbeard wants to merge 2 commits into
mainfrom
test-lsp-hidden
Closed

quickbeard wants to merge 2 commits into
mainfrom
test-lsp-hidden

Conversation

@quickbeard

Copy link
Copy Markdown
Owner

Summary

Adds a unit test for the sidebar change in #53 (hide the disabled LSP section and move the path to the sidebar bottom).

The View in packages/tui/src/feature-plugins/sidebar/lsp.tsx is now exported so it can be rendered in isolation; no behavior change.

Tests

test/feature-plugins/sidebar-lsp.test.tsx renders View with a stub plugin API and asserts:

  • When config.lsp is disabled, the whole section is gone — no LSP heading at all (the PR's core change: no more "LSPs are disabled" placeholder).
  • When enabled, the LSP heading and the "LSPs will activate as files are read" empty state render.
  • When enabled with a connected server, the server id renders and the empty state is gone.

Verification

  • bun test test/feature-plugins/sidebar-lsp.test.tsx — 3 pass.
  • bun typecheck in packages/tui — clean.

🤖 Generated with Claude Code

quickbeard and others added 2 commits July 13, 2026 20:21
Export the sidebar LSP View and add a render test asserting the whole section
is hidden when config.lsp is disabled, and that the heading, empty state, and
connected servers render when enabled.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@quickbeard quickbeard closed this Jul 13, 2026
@quickbeard
quickbeard deleted the test-lsp-hidden branch July 13, 2026 13:33
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