Has anyone done any work to make it easy to test meteor methods?
I can image a number of way a UI or small wrapper code could make it easy to test invalid and valid inputs to meteor methods.
Thoughts?
Has anyone done any work to make it easy to test meteor methods?
I can image a number of way a UI or small wrapper code could make it easy to test invalid and valid inputs to meteor methods.
Thoughts?
Using this package to change the way you create and manage method has helped us a lot: https://github.com/cult-of-coders/mutations
You separate the definition of the method from where you give it the function to run. So all the params checking is automated, and you can simply test the “handler” that you pass to it.