t3-code-android-nightly/.repos/effect-smol/.agents/skills/test-development/runtime.md
Julius Marminge e3c85ead63
chore(refs): sync Effect and Alchemy references to rc.115 and beta.78 (#12327)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-17 23:21:25 -07:00

617 B

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.