devtools

Simplified Redux Testing with redux-mock-store

Founders get easy Redux testing, 2.5k+ GitHub stars, for JavaScript developers
2,500 stars148 forksJavaScriptGuide quality 8/10Updated 1/3/2025100% free · open source
What it does

Redux Mock Store provides a mock store for testing Redux async action creators and middleware, allowing you to isolate and test your Redux logic in a controlled environment.

When to use it
  • When writing unit tests for Redux action creators that involve async operations
  • When testing Redux middleware that handles async actions
  • When debugging complex Redux state changes caused by async actions
Ready-to-paste prompt
import configureMockStore from 'redux-mock-store'; const mockStore = configureMockStore([]); mockStore.dispatch({ type: 'ADD_ITEM' }); console.log(mockStore.getActions());
Heads up: Make sure to import the configureMockStore function from the correct path ('redux-mock-store') and not from a sub-path, as the export is a default export and may cause import issues if not handled correctly.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/redux-mock-store && curl -fsSL https://workflowstacks.com/api/skills/redux-mock-store/claude-skill -o ~/.claude/skills/redux-mock-store/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Simplified Redux Testing with redux-mock-store works
Codeflow
Free to inspect

Simplified Redux Testing with redux-mock-store is a tiny JavaScript project (~100 lines across 2 code files, plus 4 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit 21 months ago, MIT license, has a test suite.

Size
Tiny codebase
~100 lines · 2 code files · 2 min skim
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Node.js
No API keys detected
JavaScript 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    src/index.js
    Where the program starts running
  3. 3
    package.json
    Dependencies and the commands it exposes
What's in each folder
src/Core code — the actual logic1 files
test/Tests — proof it works4 files
READMEHas testsThin docsNo CIMIT licenseLast update 21 mo ago
Quick Actions
Details
Creator
reduxjs
Language
JavaScript
Category
devtools
Published
10/26/2015

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.