mirror of
https://github.com/wassname/talk.git
synced 2026-07-28 11:27:05 +08:00
Clean DB before serve
This commit is contained in:
@@ -3,6 +3,7 @@ const {shutdown} = require('../../bin/util');
|
||||
|
||||
module.exports = {
|
||||
before: async (done) => {
|
||||
console.log('Dropping test database');
|
||||
await mongoose.connection.dropDatabase();
|
||||
done();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user