DEV Community

Discussion on: Setup in-memory database for testing Node.js and Mongoose

Collapse
 
cedricgourville profile image
Cédric Gourville

Hey thx for the article. In the function clear from the db file in test. I think deleMany should have an empty object as parameter

Collapse
 
ryuuto829 profile image
Dmytro Rykhlyk • Edited

Hi, thank you!
I've tested it with / without empty object and in both cases, all data was properly deleted after each test, so everything should work fine.
Anyway, I'll add it as in the MongoDB documentation. Thx :)