1.0.10 • Published 6 years ago

redux-integration-store v1.0.10

Weekly downloads
61
License
ISC
Repository
-
Last release
6 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

6 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago