test: Clear all jest mocks with after each global hook
This commit is contained in:
@@ -21,6 +21,8 @@ global.beforeEach(async () => {
|
||||
global.afterEach(async () => {
|
||||
await global.knex.rollback();
|
||||
Model.knex(knex);
|
||||
|
||||
jest.clearAllMocks();
|
||||
});
|
||||
|
||||
global.afterAll(async () => {
|
||||
|
Reference in New Issue
Block a user