Skip to content

Commit

Permalink
Upgrade @pdfme/generator to 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunalpal216 committed Nov 7, 2024
1 parent e828b78 commit a6ff346
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export default {
'^@dicebear/collection$':
'<rootDir>/scripts/__mocks__/@dicebear/collection.ts',
'\\.svg\\?react$': '<rootDir>/scripts/__mocks__/fileMock.js',
'\\.svg$': '<rootDir>/scripts/__mocks__/fileMock.js',
'\\.svg$': '<rootDir>/scripts/__mocks__/fileMock.js',
"^@pdfme/generator$": "<rootDir>/scripts/__mocks__/@pdfme/generator.ts"
},
moduleFileExtensions: [
'web.js',
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@mui/x-charts": "^7.17.0",
"@mui/x-data-grid": "^7.16.0",
"@mui/x-date-pickers": "^7.11.1",
"@pdfme/generator": "^4.5.2",
"@pdfme/generator": "^5.0.0",
"@reduxjs/toolkit": "^2.2.7",
"@vitejs/plugin-react": "^4.3.1",
"babel-plugin-transform-import-meta": "^2.2.1",
Expand Down
3 changes: 3 additions & 0 deletions scripts/__mocks__/@pdfme/generator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const generate = async (): Promise<Uint8Array> => {
return new Uint8Array([10, 20, 30, 40, 50]);
};

0 comments on commit a6ff346

Please sign in to comment.