Redux Saga Testing — Testing skill for Claude Code
AI agent skill for testing Redux Sagas — expectSaga, testSaga, providers, Jest/Vitest.
How to install Redux Saga Testing
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open anivar/redux-saga-testing and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Redux Saga Testing does
AI agent skill for testing Redux Sagas — expectSaga, testSaga, providers, Jest/Vitest. Works with Claude Code, Cursor, Codex, Windsurf.
Alternatives in Testing
- Spec Kitty — Spec-Driven Development for serious software developers 1.6k ★
- Spec Driven Develop — Spec-driven development workflow for AI coding agents: architecture-first planning, task decomposition, GitHub 975 ★
- Spectra App — Spec-driven development for coding agents — a desktop app, a CLI, and skills for Codex, Claude Code, Cursor, C 735 ★
README
Redux-Saga Testing
Created by **[Anivar Aravind](https://anivar.net)**
An AI agent skill for writing tests for Redux Sagas using redux-saga-test-plan. Works with Jest and Vitest.
The Problem
AI agents often write saga tests that are brittle (asserting exact effect order when it doesn't matter), miss provider setup (causing tests to hit real APIs), or use manual generator stepping when `expectSaga` would be simpler and more maintainable. The result: tests that break on harmless refactors and pass when they shouldn't.
This Solution
A focused testing skill covering `expectSaga` (integration), `testSaga` (unit), providers, matchers, and reducer integration — with 12 anti-patterns showing exactly what goes wrong and how to fix it.
Install
npx skills add anivar/redux-saga-testing -g
Or with full URL:
npx skills add https://github.com/anivar/redux-saga-testing
Baseline
- redux-saga-test-plan ^5.x
- redux-saga ^1.4.2
- Jest or Vitest
What's Inside
Testing Approaches
| Approach | Type | Use When |
|---|---|---|
expectSaga |
Integration | Default choice — order-independent, async, assertions on effects and state |
testSaga |
Unit | Effect ordering matters (e.g., must select before call) |
runSaga |
Manual | Need full store integration or custom middleware |
Providers
| Provider Type | Purpose |
|---|---|
| Static providers | Map effect → return value (simple, covers most cases) |
| Dynamic providers | Custom logic per effect type (conditional mocking) |
| Partial matchers | matchers.call.fn(apiFn) — match by function regardless of args |
Anti-Patterns
12 common testing mistakes with BAD/GOOD code examples:
- Asserting effect order in integration tests
- Missing providers for API calls
- Not awaiting
expectSaga(test always passes) - Testing implementation instead of behavior
- Ignoring error paths and cancellation
Structure
├── SKILL.md
Related Skills
Zod Testing
AI agent skill for testing Zod schemas — Jest/Vitest patterns, mock data, property-based testing. Works with C
Coverage Guard
An AI agent skill that enforces 100% test coverage for any JavaScript/TypeScript project. Works with Vitest, J
Specross
Spec-driven development (SDD) for AI coding assistants. Slash commands for BA, Dev & QC — one story spec drive
Msw Skill
AI agent skill for MSW 2.0 — 20 rules: handler design, REST/GraphQL, test patterns. Works with Claude Code, Cu
React Test
Enforce TDD workflow for React. Write React Testing Library tests first (behavior-focused, accessibility-first
macOS Trace
Agent Skill: closed-loop performance optimization for macOS apps — headless xctrace profiling, targeted code f
Related Agents
Testing
Test development with pytest/Jest/Vitest, coverage analysis, and bug reproduction workflows
Creo Unit Test
Unit and integration test specialist using Vitest, Jest, and Testing Library for components, hooks, and stores
10x Tool Calls
Cursor and Windsurf meter usage by requests and tool calls rather than tokens, which means a finished or stall