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.