test-development

Test development. Use when adding or changing runtime Vitest coverage or Tstyche contracts for behavior, inference, assignability, or displayed public types.

Install
npx skills add 'https://github.com/Effect-TS/effect/tree/main/.agents/skills/test-development'
Download bundle ↓
main · 90695b0Scanned 2026-09-15

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

runtime.md

runtime.mdBrowse 4 files
View on GitHub
← Back to SKILL.md

Runtime Tests

  • Use it.effect for Effect-returning tests and regular it for pure synchronous tests.
  • it.effect and it.live provide and close a Scope; return scoped effects directly instead of wrapping the body in Effect.scoped.
  • Use assert from @effect/vitest, not Vitest's expect.
  • Use TestClock for time-dependent behavior.
  • Keep Effect.runSync out of unit tests; runnable documentation follows the root JSDoc validation rules.

Inspect nearby tests for imports and structure. This branch is complete when every changed behavior has focused coverage and its targeted test passes.

Referenced from SKILL.md