cliffhall
1f7ef9184c
test(tui): truly assert the non-selected-server auth guards
...
Addresses the @claude review of #1611 : the event registry is now keyed by
(client, fn) rather than event name alone, and a new `fireClientEventFor(client,
…)` helper fires a single client's listeners. The "ignores auth lifecycle events
from a non-selected server" test now fires ambient/recovered/oauthError for ONLY
the non-selected client and asserts no message appears — so removing the
`selectedServerRef.current !== serverName` guard would fail the test — then fires
for the selected client to confirm it does act. Coverage of App.tsx is unchanged
(92.23 / 90.20 / 92.85 / 92.68); existing fire-all `fireClientEvent` behavior is
preserved.
Part of #1610 .
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S3fTN8H3R8YV4yUGvZjYnX
2026-07-04 19:08:44 -04:00
..
helpers
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00
App.test.tsx
test(tui): truly assert the non-selected-server auth guards
2026-07-04 19:08:44 -04:00
AuthTab.test.tsx
test(tui): cover AuthTab step-up up-arrow and a/c shortcuts
2026-07-04 16:59:51 -04:00
DetailsModal.test.tsx
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00
HistoryTab.test.tsx
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00
InfoTab.test.tsx
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00
logger.test.ts
test: raise per-file coverage gate to 90 across all clients ( closes #1271 ) ( #1532 )
2026-06-27 15:26:03 -04:00
NotificationsTab.test.tsx
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00
oauthDisplay.test.ts
Guided-auth removal, OAuth smoke testing, and TUI/CLI support ( #1531 )
2026-06-29 15:35:51 -04:00
openUrl.test.ts
test(cli,tui): add in-process source coverage gates ( #1484 ) ( #1502 )
2026-06-20 15:05:58 -04:00
promptArgsToForm.test.ts
test(cli,tui): add in-process source coverage gates ( #1484 ) ( #1502 )
2026-06-20 15:05:58 -04:00
PromptsTab.test.tsx
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00
PromptTestModal.test.tsx
All of the mid-session and step-up auth work
2026-07-02 16:35:31 -07:00
RequestsTab.test.tsx
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00
ResourcesTab.test.tsx
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00
ResourceTestModal.test.tsx
All of the mid-session and step-up auth work
2026-07-02 16:35:31 -07:00
schemaToForm.test.ts
test(cli,tui): add in-process source coverage gates ( #1484 ) ( #1502 )
2026-06-20 15:05:58 -04:00
SelectableItem.test.tsx
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00
setup.ts
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00
Tabs.test.tsx
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00
ToolsTab.test.tsx
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00
ToolTestModal.test.tsx
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00
tui-servers.test.ts
Guided-auth removal, OAuth smoke testing, and TUI/CLI support ( #1531 )
2026-06-29 15:35:51 -04:00
tui.test.ts
feat: port CLI, TUI, and launcher from v1.5 into v2 ( #1452 )
2026-06-14 20:27:49 -04:00
tuiOAuth.test.ts
All of the mid-session and step-up auth work
2026-07-02 16:35:31 -07:00
uriTemplateToForm.test.ts
test(cli,tui): add in-process source coverage gates ( #1484 ) ( #1502 )
2026-06-20 15:05:58 -04:00
useSelectableList.test.tsx
test(tui): extend coverage gate to Ink components + App.tsx ( closes #1501 ) ( #1538 )
2026-06-29 08:19:12 -04:00