Skip to content

Commit

Permalink
Update configureStore.dev.js (#1371)
Browse files Browse the repository at this point in the history
Skip redux logs in console during the tests
  • Loading branch information
FDiskas authored and amilajack committed Jan 13, 2018
1 parent c39b82a commit 6b44c9f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/store/configureStore.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ const configureStore = (initialState?: counterStateType) => {
level: 'info',
collapsed: true
});
middleware.push(logger);

// Skip redux logs in console during the tests
if (process.env.NODE_ENV !== 'test') {
middleware.push(logger);
}

// Router Middleware
const router = routerMiddleware(history);
Expand Down

0 comments on commit 6b44c9f

Please sign in to comment.