After speaking with Rob and the last SDRuby meetup I was inspired to ask my
question here. I am attempting to test a store using jest and it's not
registering the AppDispatcher. The first commented line including jest.mock
allowed the console.log to output an empty hash of { calls: [], instances:
[] }. I don't want to explicitly call this because jest is supposed to
auto-mock all of the requires. Why is AppDispatcher.register.mock
undefined? I have provided the store code first and then the test. Thanks!
The link to my stack overflow question and the code is at
http://stackoverflow.com/questions/31899142/appdispatcher-is-not-registering-store-in-jest
.
Thanks!
-Tommy
--
--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
---
You received this message because you are subscribed to the Google Groups "SD
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.