技能 编程开发 Effect 测试开发

Effect 测试开发

v20261120
effect-smol-test-development
为 Effect 运行时行为和公共类型推断添加聚焦的 Vitest 与 Tstyche 测试覆盖,包括重载、可赋值性、错误推断和环境要求的回归测试。
获取技能
246 次下载
概览

Test Effect Behavior and Type Contracts

When to Use

Add focused Vitest and Tstyche coverage for Effect runtime behavior and public type inference.

Workflow

Identify whether the bug or change affects runtime behavior, public types or both. Use local Vitest conventions for effects and resource cleanup. Use Tstyche to exercise assignability, inferred errors, environment requirements and displayed types. Confirm a regression test fails for the intended reason before accepting its fix. Run focused tests and applicable root checks. Report which branches ran and any platform limitation.

Example

Test an overload with a runtime result check and explicit type expectations for accepted and rejected call shapes.

Limitations

Requires the relevant Effect workspace and its versioned tools. Use local project policy and authorized fixtures. Results cover only the checked packages and environments.

Bundled resources

Use the bundled local references for the applicable branch of the workflow: displayed types, runtime, types. Run commands against the target Effect workspace.

Source

Adapted from the pinned skill tree. See the MIT license.

This snapshot of Effect v4 is vendored by Local Studio.

信息
分类 编程开发
名称 effect-smol-test-development
版本 v20261120
大小 3.4KB
更新时间 2026-11-21
语言