# redux-test-store

> Test Redux Stores Easily

Latest version **0.5.0** (published 2016-11-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install redux-test-store
pnpm add redux-test-store
yarn add redux-test-store
bun add redux-test-store
```

## 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.5.0 |
| Published | 2016-11-08 |
| First published | 2016-03-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | David Khourshid |
| Maintainers | davidkpiano |
| Keywords | redux |

## Links

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

## Recent versions

- 0.5.0 (latest) — 2016-11-08
- 0.4.0 — 2016-05-05
- 0.3.2 — 2016-05-05
- 0.3.1 — 2016-05-05
- 0.3.0 — 2016-03-29
- 0.2.0 — 2016-03-29
- 0.1.1 — 2016-03-29
- 0.1.0 — 2016-03-29

## README

# redux-test-store
Test existing stores in Redux, the easy way

## Quick Start
- `npm install redux-test-store --save-dev`
- Import it:

```js
import createTestStore from 'redux-test-store';

import store from '../path/to/real/store';

describe('auth action creators', () => {
  it('should authenticate successfully', (done) => {
    let tokenSet = [{token: 1}, {token: 2}];

    const testStore = createTestStore(store, done);

    testStore.when(actionTypes.CHANGE, (state, action) => {
      assert.deepEqual(state.auth.sets, tokenSet);
    });

    testStore.dispatch(actions.authenticate({
      email: 'foo@bar.com',
      password: 'goat'
    }));
  });
```

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