diff --git a/setup-jest.ts b/setup-jest.ts index 371ad9a4..173c0ea3 100644 --- a/setup-jest.ts +++ b/setup-jest.ts @@ -14,16 +14,11 @@ beforeAll(async () => { password: "wri", database: "terramatch_microservices_test", models: Object.values(Entities), - logging: false + logging: false, + sync: { alter: true } }); - try { - await sequelize.sync(); - } catch (e) { - // We can ignore this in most cases because it probably means another task has already synced - // the DB - console.info("Error Synchronizing DB Schema", e); - } + await sequelize.sync(); FactoryGirl.setAdapter(new SequelizeAdapter()); });