fix: api docker container for mac users

This commit is contained in:
Mohamed Marrouchi
2024-09-30 12:20:10 +01:00
parent d9b8c9b4d4
commit e01955cfed
3 changed files with 140 additions and 6 deletions

View File

@@ -23,3 +23,11 @@ jest.mock('connect-mongo', () => ({
}),
})),
}));
jest.mock('@resvg/resvg-js', () => {
return {
Resvg: jest.fn().mockImplementation(() => ({
render: jest.fn().mockReturnValue({ asPng: jest.fn() }),
})),
};
});