effect-patterns-testing

Provides reusable testing patterns for Effect-TS programs including unit, streaming, concurrency, and property-based tests.

785|26|Updated Jun 22, 2025
One-click install
npx skills add https://github.com/PaulJPhilp/EffectPatterns --skill effect-patterns-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-patterns-testing
Source: https://github.com/PaulJPhilp/EffectPatterns/tree/main/config/.claude-plugin/plugins/effect-patterns/skills/effect-patterns-testing
Command: npx skills add https://github.com/PaulJPhilp/EffectPatterns --skill effect-patterns-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a library of Effect-TS testing patterns to help developers write robust, reusable tests for Effect programs, reducing boilerplate and increasing confidence.

Core Features & Use Cases

  • Structured testing patterns: beginner to advanced examples for unit tests, streaming tests, concurrency, and property-based testing.
  • Practical scenarios: real-world guidance for testing services, mocks, determinism with TestClock, and deterministic concurrent code.
  • Fast-start utility: ready-to-copy patterns you can adapt to your codebase to accelerate test coverage.

Quick Start

Copy and adapt the provided test patterns into your Effect-TS project to start validating functions, streams, and services immediately.

Frequently Asked Questions about effect-patterns-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write deterministic unit tests for Effect-TS programs?

Deterministic Effect-TS unit testing uses reusable patterns and TestClock to control time, ensuring safe and predictable test execution for functions and services.

What is the best way to test concurrency in Effect-TS?

Testing concurrency in Effect-TS requires structured patterns to verify concurrent code deterministically. This Skill provides curated patterns for safe concurrency testing, reducing boilerplate and increasing confidence in concurrent program behavior.

How do I use property-based testing with Effect-TS?

Property-based testing in Effect-TS validates functions against randomized inputs using structured patterns. This Skill includes advanced examples to help you apply property-based testing and increase test coverage rapidly.

Can I use these Effect-TS testing patterns with common test runners?

Yes, these Effect-TS testing patterns are designed for integration with common test runners. They provide modular, type-safe test utilities and test doubles that adapt to your existing test runner setup.

How do I test streams and services in Effect-TS?

Testing streams and services in Effect-TS uses practical patterns for mocking and validating streaming data. This Skill offers real-world guidance and ready-to-copy patterns to immediately start validating streams and services.