I have a number of Alt-Stores which require dependencies in the form of constructorArgs. When I use AltTestingUtils.makeStoreTestable(myAltInstance, MyUnWrappedStore) it fails for obvious reasons.
As there is no way to send constructor args in AltTestingUtils.makeStoreTestable(). Ideally it should be there because alt.createStore() also supports this (StoreModel: function, iden: ?string, …constructorArgs): AltStore (docs).
I have almost made the changes and will make a pull request in a bit.
I have a number of Alt-Stores which require dependencies in the form of constructorArgs. When I use
AltTestingUtils.makeStoreTestable(myAltInstance, MyUnWrappedStore)
it fails for obvious reasons. As there is no way to send constructor args inAltTestingUtils.makeStoreTestable()
. Ideally it should be there becausealt.createStore()
also supports this(StoreModel: function, iden: ?string, …constructorArgs): AltStore
(docs).I have almost made the changes and will make a pull request in a bit.