Skip to content

Commit

Permalink
fix: api docker container for mac users
Browse files Browse the repository at this point in the history
  • Loading branch information
marrouchi committed Sep 30, 2024
1 parent d9b8c9b commit e01955c
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 6 deletions.
134 changes: 128 additions & 6 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@
"tsconfig-paths-jest": "^0.0.1",
"typescript": "^5.1.3"
},
"optionalDependencies": {
"@css-inline/css-inline-linux-arm64-musl": "^0.14.1",
"@resvg/resvg-js-linux-arm64-musl": "^2.6.2"
},
"overrides": {
"mjml": "5.0.0-alpha.4"
},
Expand Down
8 changes: 8 additions & 0 deletions api/test/setup-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() }),
})),
};
});

0 comments on commit e01955c

Please sign in to comment.