Node.js Database Cleaner with Mongoose

Env Mac OSX 10.12.3 MongoDB 3.4.2 Node.js 7.5.0 Mocha 3.2.0 database-cleaner 1.2.0 Install database-cleaner 🚿 $ yarn add -D database-cleaner or $ npm install -D database-cleaner test/mocha.opts --reporter spec --recursive --require test/setup test/setup.js const mongoose = require('mongoose')…