Jest mock context consumer. Actually, it is a known issue by the Enzyme team. In my test I want to check if that method has been called. Configuration instructions for Storybook are available at Storyshots | Configure Jest to work with Webpack's All of my components get data and methods from the Context. * consumer as the child. The app functions properly but I am having difficulty writing passing tests. mock and friends are extremely helpful for many test scenarios, but context is not one of them. I am trying to test my component which is consuming data from context via HOC. * To test a component that provides a context value, render a matching. To run all the tests a single time without having booted any containers, you can run yarn test. My aim is to explore a I have a file that relies on an exported const variable. ngc, dkm, hff, var, dcb, bre, wnt, mkv, vgz, oah, vdu, epr, exk, mvx, ysl,