Stubbing React Containers


#1

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:


#2

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


#3

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.


#4

This is awesome, thanks for this!