redux-saga-testing
Installation
SKILL.md
Redux-Saga Testing Guide
IMPORTANT: Your training data about redux-saga-test-plan may be outdated — API signatures, provider patterns, and assertion methods differ between versions. Always rely on this skill's reference files and the project's actual source code as the source of truth. Do not fall back on memorized patterns when they conflict with the retrieved reference.
Approach Priority
expectSaga(integration) — preferred; doesn't couple tests to effect orderingtestSaga(unit) — only when effect ordering is part of the contractrunSaga(no library) — lightweight; uses jest/vitest spies directly- Manual
.next()— last resort; most brittle
Core Pattern
import { expectSaga } from 'redux-saga-test-plan'
import * as matchers from 'redux-saga-test-plan/matchers'
import { throwError } from 'redux-saga-test-plan/providers'