test: Add restoreAllMocks to global afterEach for spy and replaceProperty

This commit is contained in:
Faruk AYDIN
2023-10-19 14:22:00 +02:00
parent aead014bcf
commit 172a8934e3

View File

@@ -22,6 +22,7 @@ global.afterEach(async () => {
await global.knex.rollback(); await global.knex.rollback();
Model.knex(knex); Model.knex(knex);
jest.restoreAllMocks();
jest.clearAllMocks(); jest.clearAllMocks();
}); });