test: Add restoreAllMocks to global afterEach for spy and replaceProperty
This commit is contained in:
@@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user