# redux-mock-store-jest

> [![Circle CI](https://circleci.com/gh/arnaudbenard/redux-mock-store/tree/master.svg?style=svg)](https://circleci.com/gh/arnaudbenard/redux-mock-store/tree/master)

Latest version **0.0.2** (published 2015-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install redux-mock-store-jest
pnpm add redux-mock-store-jest
yarn add redux-mock-store-jest
bun add redux-mock-store-jest
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-11-16 |
| First published | 2015-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2498 |
| Author | Arnaud Benard |
| Maintainers | sorrycc |

## Links

- npm: https://www.npmjs.com/package/redux-mock-store-jest
- Repository: https://github.com/arnaudbenard/redux-mock-store
- Homepage: https://github.com/arnaudbenard/redux-mock-store#readme
- Issues: https://github.com/arnaudbenard/redux-mock-store/issues
- npm.io page: https://npm.io/package/redux-mock-store-jest

## Recent versions

- 0.0.2 (latest) — 2015-11-16

## README

[![Circle CI](https://circleci.com/gh/arnaudbenard/redux-mock-store/tree/master.svg?style=svg)](https://circleci.com/gh/arnaudbenard/redux-mock-store/tree/master)

# redux-mock-store

A mock store for your testing your redux async action creators and middleware

## Install

```
npm install redux-mock-store --save-dev
```

## How to use

```js

// actions.test.js

import configureStore from 'redux-mock-store';

const middlewares = []; // add your middlewares like `redux-thunk`
const mockStore = configureStore(middlewares);

// Test in mocha
it('should dispatch action', (done) => {
  const getState = {}; // initial state of the store
  const action = { type: 'ADD_TODO' };
  const expectedActions = [action];

  const store = mockStore(getState, expectedActions, done);
  store.dispatch(action);
})
```

## License

MIT

---
_Source: https://npm.io/package/redux-mock-store-jest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
