0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed resetting database in migrations tests

- due to schema changes between versions, we need to completely nuke the
  DB between these tests
- this is definitely not the best way to do it but I'll fix properly next week
This commit is contained in:
Daniel Lockyer 2023-07-07 18:31:30 +02:00 committed by Daniel Lockyer
parent 7dfbaefa3e
commit 6f5f608bcd

View file

@ -31,6 +31,7 @@ describe('Migrations', function () {
describe('Database initialization + rollback', function () {
beforeEach(async function () {
await knexMigrator.reset({force: true});
await knexMigrator.init();
});