These are chat archives for Automattic/mongoose

17th
Jul 2015
Alexej Yaroshevich
@zxqfox
Jul 17 2015 05:57
Hey there, guys. Thanks for supporting this project!
I have a little question about mocking and testing with mongoose models. I've found a package https://github.com/AndrewGrachov/mongomock that allows me to stub some data before running tests. Can I put this mongodb-mock to mongoose instead of mongodb?
Or is there any better way to write tests for some http/API service based on mongoose? I really don't want to use separate instance of mongo for testing purposes.