react-redux-jest-kit
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -0,0 +0,0 @@ import { count, filterTable } from '../src/actions/index' |
@@ -0,0 +0,0 @@ import reducers from '../src/reducers'; |
{ | ||
"name": "react-redux-jest-kit", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "StarterKit with react, redux, eslint, webpack and jest.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,3 +8,10 @@ import React from 'react'; | ||
const store = configureStore(); | ||
const initialState = { | ||
order: [], | ||
counter: 0, | ||
filter: '' | ||
}; | ||
const store = configureStore(initialState); | ||
// create order | ||
@@ -11,0 +18,0 @@ store.dispatch(createOrder()); |
@@ -10,10 +10,4 @@ import createHistory from 'history/createBrowserHistory'; | ||
const initialState = { | ||
order: [], | ||
counter: 0, | ||
filter: '' | ||
}; | ||
export function configureStore() { | ||
return createStore( | ||
export function configureStore(initialState) { | ||
const store = createStore( | ||
rootReducer, | ||
@@ -25,2 +19,10 @@ initialState, | ||
); | ||
if(module.hot) { | ||
module.hot.accept('../reducers', () => | ||
store.replaceReducer(require('../reducers').default) | ||
); | ||
} | ||
return store; | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37471
684