# reduxjs/redux-mock-store

A mock store for testing Redux async action creators and middleware.

Repository: https://github.com/reduxjs/redux-mock-store
Canonical: https://ross.abutalabs.com/products/redux-mock-store
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, redux, test
Last push: 2025-01-03T07:50:28+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3964, "days_push": 607, "days_rel": 681, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2498, forks 148 (observed 2026-08-28T04:06:56.841685+00:00)

## What it is
A mock Redux store for testing async action creators and middleware by recording dispatched actions. The Redux team now deprecates it in favor of testing with a real store.

## Use cases
- test redux async action creators
- assert dispatched actions in unit tests
- test redux middleware in isolation
- mock redux store in jest tests
- verify action payloads without reducers

## When to choose
- you maintain a legacy codebase already using it
- you only need to assert on dispatched actions, not state changes

## When to avoid
- starting a new project - the Redux team recommends testing with a real store
- you need tests that combine actions, reducers, and selectors
- you want state to update when actions are dispatched

## Facets
- artifact type: library
- maturity: maintenance
- function: testing, mocking, state-management
- domain: frontend, testing, web-development
- platform: -
- tags: redux, unit-testing, mock-store, deprecated, action-creators, middleware-testing, nodejs, javascript

## Member repositories
- reduxjs/redux-mock-store (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:56.841685+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:27:03.304751+00:00, confidence not recorded.
  - readme: https://github.com/reduxjs/redux-mock-store (fetched 2026-08-28T04:06:56.841685+00:00, sha 0035b76b57c7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
