fake-summoner-client

Community

Test real client socket flows with ease

Authorrecca0120
Version1.0.0
Installs0

System Documentation

What problem does it solve?

FakeSummoner Client provides a reliable test harness for validating React UI behavior that depends on the Code Quest client-side socket pipeline, so you can test multi-tab, context, and state transitions without manually wiring a real server.

Core Features & Use Cases

  • TypedSocket-based FakeSummoner: Strongly-typed socket test double for deterministic client-side testing.
  • renderWithWorkspace and renderWithChannel: Workspace-level tests for multi-tab scenarios, and channel-level tests for component/context/hook verification.
  • Server push + control request simulation: Emit protocol segments and drive permission/control UI flows (e.g., tool-use approval banners) while verifying resulting UI state.
  • State injection and mid-flight ACK control: Use initialState for render-only/edge-case setup, and holdEmit to pause at ACK to assert “connecting/loading” intermediate UI.
  • Cross-context priming: Prime services/state with one FakeSummoner instance and reuse the socket for another to validate hooks like worktree listings.

Quick Start

Use the fake-summoner-client skill to write a test that renders a ChatPanel with renderWithChannel, sends segments through claude.emitSegment(...) inside act(async () => ...), and asserts the resulting UI updates.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fake-summoner-client
Download link: https://github.com/recca0120/code-quest/archive/main.zip#fake-summoner-client

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.