test: Clear all jest mocks with after each global hook

This commit is contained in:
Faruk AYDIN
2023-10-18 00:43:16 +02:00
parent 2f35403078
commit 14886d42e8

View File

@@ -21,6 +21,8 @@ global.beforeEach(async () => {
global.afterEach(async () => {
await global.knex.rollback();
Model.knex(knex);
jest.clearAllMocks();
});
global.afterAll(async () => {