reduxjs / redux-templates

Official Redux templates for Vite, Create-React-App, and more
https://redux.js.org
MIT License
1.43k stars 255 forks source link

Rewrite template example tests as "integration"-style tests per the Redux "Testing" docs page #90

Closed markerikson closed 10 months ago

markerikson commented 1 year ago

Our docs page at https://redux.js.org/usage/writing-tests recommends an "integration"-style testing approach. But, the example tests are currently expect(counterReducer(state, action)).toEqual(expected).

There was a previous PR to the CRA+JS template that tried to switch the tests over to "integration"-style:

We should do something along those lines for the updated templates.