mirror of
https://github.com/wassname/talk.git
synced 2026-10-02 12:50:49 +08:00
Clean DB before serve
This commit is contained in:
1 parent
bf2e11ef9a
commit
2a0f70f084
2 files changed
+5
-1
No files matched your search
@@ -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