pattern-test

Installation
SKILL.md

Use Skill("ct") for ct CLI documentation when running commands.

Test Sub-Pattern

Prerequisite Check

Before writing tests, verify the pattern has:

  • pattern<Input, Output>() (not single-type pattern<State>())
  • Actions typed as Stream<T> in Output interface
  • Bound handlers returned from the pattern

If missing, fix the pattern first - tests can't call .send() without proper Output types.

Read First

  • docs/common/workflows/pattern-testing.md - Full test file format and prerequisites

Test Command

deno task ct test packages/patterns/[name]/[file].test.tsx
Related skills
Installs
49
GitHub Stars
33
First Seen
Jan 21, 2026