fix: do not drop all tables

This commit is contained in:
chenos 2022-02-15 00:36:08 +08:00
parent c5f639338f
commit 7e59e275e0

View File

@ -3,8 +3,6 @@ import CollectionManagerPlugin from '..';
export async function createApp() {
const app = mockServer();
const queryInterface = app.db.sequelize.getQueryInterface();
await queryInterface.dropAllTables();
app.plugin(CollectionManagerPlugin);
await app.load();
return app;