Simple utility function to create a mock Redux store, to be used for unit tests.
npm install --save-dev @mt-testutils/mock-store
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);
- See CHANGELOG.md
- See CONTRIBUTING.md
Copyright © 2018 mobile.de GmbH