Testing

Test Effect-TS code with property-based and layered workflows.

8|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/andrueandersoncs/claude-skill-effect-ts --skill testing-andrueandersoncs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Testing
Source: https://github.com/andrueandersoncs/claude-skill-effect-ts/tree/main/skills/testing
Command: npx skills add https://github.com/andrueandersoncs/claude-skill-effect-ts --skill testing-andrueandersoncs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves testing of Effect-TS code by enabling automated, property-based, and layered testing workflows.

Core Features & Use Cases

  • Property-based testing with Arbitrary to generate diverse input data
  • Layered test environments using Layer and it.layer for complex service tests
  • Service-oriented testing patterns with Context.Tag services and TestClock

Quick Start

Install the @effect/vitest package alongside your Vitest setup. Create tests using it.effect.prop to define property-based tests that exercise your Effect-TS code, and leverage Arbitrary for input data. Then run your test suite with your usual command (e.g., pnpm test).

Frequently Asked Questions about Testing

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

FAQPage Schema
How do I write property-based tests for Effect-TS code?

Property-based testing for Effect-TS uses Arbitrary to generate diverse input data. You define tests with it.effect.prop to exercise your code automatically across a wide range of generated scenarios.

How do I test Effect-TS services that depend on time?

Testing time-dependent Effect-TS services uses TestClock for deterministic execution. You control time advancement within your tests to verify scheduled effects and timeouts without actual waiting.

What is the best way to mock dependencies in Effect-TS tests?

Mocking dependencies in Effect-TS tests uses Layer and it.layer to build isolated test environments. You construct layered contexts to provide test implementations for Context.Tag services.

Can I use Vitest with Effect-TS for automated testing?

Vitest pairs with Effect-TS through the @effect/vitest package. This integration enables automated testing workflows, allowing you to run Effect-TS test suites using standard Vitest commands.

How do I generate test data from schemas in Effect-TS?

Generating test data from schemas in Effect-TS uses Arbitrary. It creates diverse, schema-driven input data automatically, satisfying requirements for robust property-based testing.