[React Testing Library] Integration tests with preloadedState
hat-iparamed opened this issue · 0 comments
hat-iparamed commented
We are doing integration tests with our react app but couldn't create the store with preloadedState
Unexpected key "injectedSlice" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: ....
As I understand because we don't initialize the reducer when configure the store so it could not understand in test. Maybe I have to create another version of configureStore
for testing only?