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

Test cases failed #1720

Closed
Rajshah1897 opened this issue May 21, 2021 · 1 comment
Closed

Test cases failed #1720

Rajshah1897 opened this issue May 21, 2021 · 1 comment

Comments

@Rajshah1897
Copy link

I have 12 test cases failed in my project. here is the error. Not sure how to fix this?

could not find react-redux context value; please ensure the component is wrapped in a

24 | const handleImport = () => pushStep('importContact');
25 |
> 26 | const globalStoreData = useSelector(dataSelector);
| ^
27 | const {
28 | roles,
29 | } = globalStoreData;

Test Suites: 1 failed, 1 skipped, 30 passed, 31 of 32 total
Tests: 12 failed, 1 skipped, 133 passed, 146 total
Snapshots: 0 total
Time: 19 s

@markerikson
Copy link
Contributor

This is a problem in your application, not with React-Redux. The issues list here is reserved for actual bugs and feature requests with the library.

You should make sure you're rendering a <Provider store={store}> around your component even in tests.

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

2 participants