Automatically call createDatabase() from createCollection()
kathirsvn opened this issue · comments
Kathiresan Selvaraj commented
Calling dropDatabase()
to clear data in tests is a common pattern in Mongoose code, so calling createCollection()
after dropping will return an error.
Originally posted by vkarpov15 in #76 (comment)
Kathiresan Selvaraj commented
This is done in this PR.