createContainer testing

Hi

are there any examples of unit testing createContainer code for react?

regards
Addy

1 Like

are you asking about UI testing the component which gets the meteor stream as a prop? or do you mean testing a container to see if the published stream is being received?

I was referring to testing the component - for example -

In this case this is a simple container. Our containers are bit more complex and was wondering how to unit test them.

1 Like

I am also wondering the same thing. How do you test your containers? I am using jest, enzyme, and chai for the simpler things. But I would also like to test the things in withTracker and the state I created in my Container class. Have you figured anything out?