Stubbing React Containers

I just wanna share a simple utility we created to stubbing containers. This will help to test your UI components isolated from your Meteor app.

This is also useful when you are using React Storybook as well. This works with Meteor’s createContainer API, React Komposer and Redux as well.

Try to use it:

5 Likes

Wow! So this not only works for React Storybook, but also running Meteor tests with mocha and enzyme?

Yes. This has nothing to do with React Storybook. I just made to fix some issues I saw on React Storybook.
But, this is general purpose.

2 Likes

This is awesome, thanks for this!