effect.ts-testing

Community

Master Effect.ts testing with Layers.

AuthorIndustrial
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill teaches AI assistants how to properly test Effect.ts code, specifically addressing the common pitfall of using traditional mocking tools (vi.mock(), jest.mock()) which break Effect's dependency injection system.

Core Features & Use Cases

  • Correct Mocking: Demonstrates how to use Effect's Layer system for dependency injection in tests.
  • Avoids Mock Leakage: Ensures tests are isolated and don't interfere with each other.
  • Type Safety: Maintains TypeScript's type checking for mocks.
  • Use Case: Testing a function that makes an HTTP request using Effect.ts, by providing a mock HttpClient Layer instead of using vi.mock('@effect/platform').

Quick Start

Use the effect.ts-testing skill to learn how to mock an HttpClient service in your Effect.ts tests.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: effect.ts-testing
Download link: https://github.com/Industrial/rust-symphony/archive/main.zip#effect-ts-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.