You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could anyone share an example of how you are testing meteor apps that are using collection helpers. I'd like to be able to unit test some of our collection helpers and then stub those helpers when testing methods that use them.
The text was updated successfully, but these errors were encountered:
Well .... our test is working right now but while writing this test I was thinking refactoring the function we are testing to move some stuff into a collection helper which we would then stub would make it easier to test.
In this case not knowing how to stub the collection helper requires us to set up much more fake data to get the test to pass.
Perhaps there's a way to save the existing helper, redefine it and then restore it after the test?
Could anyone share an example of how you are testing meteor apps that are using collection helpers. I'd like to be able to unit test some of our collection helpers and then stub those helpers when testing methods that use them.
The text was updated successfully, but these errors were encountered: