Invariant Violation: Could not find “store” in either the context or props of “Connect(SportsDatabase)”

Full code here: https://gist.github.com/js08/0ec3d70dfda76d7e9fb4 Hi, I have an application where it shows different templates for desktop and mobile on basis of build environment. I am successfully able to develop it where I need to hide the navigation menu for my mobile template. right now I am able to write one test case where it fetches … Read more

Getting a UnhandledPromiseRejectionWarning when testing using mocha/chai

The issue is caused by this: If the assertion fails, it will throw an error. This error will cause done() never to get called, because the code errored out before it. That’s what causes the timeout. The “Unhandled promise rejection” is also caused by the failed assertion, because if an error is thrown in a … Read more

Getting a UnhandledPromiseRejectionWarning when testing using mocha/chai

The issue is caused by this: If the assertion fails, it will throw an error. This error will cause done() never to get called, because the code errored out before it. That’s what causes the timeout. The “Unhandled promise rejection” is also caused by the failed assertion, because if an error is thrown in a … Read more