1.0.10 • Published 5 years ago

redux-integration-store v1.0.10

Weekly downloads
61
License
ISC
Repository
-
Last release
5 years ago

redux-integration-store

The basic idea behind this module is to enable users to write integration tests for their Redux-connected React components

Usage

    import setupIntegrationTest from 'redux-integration-store';

    import SomeReduxConnectedComponent from './Component';
    import reducer from './reducer/';

    describe('Test Suite', () => {

        let store;
        let dispatchSpy;

        beforeEach(() => {
            ({ store, dispatchSpy } = setupIntegrationTest(reducer, 'topLevelReducerKey'));
        });

        test('should mount', () => {
            (<Provider store={store}>
                <SomeReduxConnectedComponent />
            </Provider>);
        })

    })

Feedback

If something isn't working for you, please let me know by opening an issue on Github.

If you like this module, please STAR on Github!

1.0.10

5 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago