Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[React Testing Library] Integration tests with preloadedState #44

Open
hat-iparamed opened this issue Nov 4, 2022 · 0 comments
Open

Comments

@hat-iparamed
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant