anivar

Redux Saga Testing — Testing skill for Claude Code

Testing community

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