AGENT SKILL
test-cadence-domain
Use when verifying, debugging, or extending the habit/streak tracker in src/lib/cadence/ after making changes to pure domain logic.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- test-cadence-domain
- staged
- true
- description
- Use when verifying, debugging, or extending the habit/streak tracker in src/lib/cadence/ after making changes to pure domain logic.
03 SKILL.md 正文
Run Cadence Domain Tests
Run tests for the cadence module to verify domain logic:
-
Execute the isolated cadence test suite:
bun test src/lib/cadence- Expected: 62 tests across 5 files (seed, streaks, stats, validation, persistence) with 2343 expects.
-
If changes affect broader app logic or integration points, run the full app suite:
bun test src- Expected: 304 tests across 32 files.
-
Verify tests use the required environment shims:
- Confirm
happy-dompreload is active viabunfig. - Confirm
localStorageis shimmed correctly for persistence tests. - Ensure
src/lib/cadence/remains pure domain code (no React/DOM imports) to maintain testability.
- Confirm
04 同仓库更多 Skills
valid-skill
A valid skill for testing purposes.
★ 0
unknown-field
A skill with an unknown frontmatter field.
★ 0
nested-child
Nested skill should be ignored.
★ 0
root-skill-preferred
Root skill should win.
★ 0
no-frontmatter
暂无简介
★ 0
child-skill
A nested skill in a subdirectory.
★ 0