ignore strapi.destroy error in test

This commit is contained in:
Ben Irvin 2023-06-28 10:55:57 +02:00
parent 3ae6cb8678
commit 298bb0d573

View File

@ -67,7 +67,11 @@ describe('Migration - draft and publish', () => {
});
afterAll(async () => {
await strapi.destroy();
try {
await strapi.destroy();
} catch (e) {
// ignore destroy errors
}
await builder.cleanup();
});