# @mt-testutils/mock-store

> A mock Redux store for Jest unit tests

Latest version **1.0.5** (published 2018-03-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mt-testutils/mock-store
pnpm add @mt-testutils/mock-store
yarn add @mt-testutils/mock-store
bun add @mt-testutils/mock-store
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2018-03-09 |
| First published | 2018-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Patrick Hund |
| Maintainers | pahund |

## Links

- npm: https://www.npmjs.com/package/@mt-testutils/mock-store
- npm.io page: https://npm.io/package/@mt-testutils/mock-store

## Recent versions

- 1.0.5 (latest) — 2018-03-09

## README

# mock-store

Simple utility function to create a mock Redux store, to be used for unit tests.

## Installation

    npm install --save-dev @mt-testutils/mock-store
    
## Usage

    import createMockStore from '@mt-testutils/mock-store';
    
    // Initial Redux state for the mock store, defaults to {} if omitted  
    const state = {
        foo: 'bar'
    };
    
    const mockStore = createMockStore(state);
    
## Change Log

* See [CHANGELOG.md](CHANGELOG.md)

## Contribution Guidelines

* See [CONTRIBUTING.md](../../CONTRIBUTING.md)

## License

[MIT licensed](LICENSE)

Copyright © 2018 mobile.de GmbH

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