From a44aadfe38b161c140a06663a42c58dde839700f Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Fri, 10 Jan 2025 18:42:42 -0500 Subject: [PATCH] Bump lucide-react to latest version and Fixed Tests --- __tests__/__snapshots__/index.test.tsx.snap | 33 --------------------- jest.setup.ts | 6 ++++ package.json | 2 +- yarn.lock | 10 +++---- 4 files changed, 12 insertions(+), 39 deletions(-) diff --git a/__tests__/__snapshots__/index.test.tsx.snap b/__tests__/__snapshots__/index.test.tsx.snap index d31b915..e76a1fd 100644 --- a/__tests__/__snapshots__/index.test.tsx.snap +++ b/__tests__/__snapshots__/index.test.tsx.snap @@ -11,39 +11,6 @@ exports[`Home renders homepage unchanged 1`] = `
- - - - - - - - No 1 task management app

({ }, })); +jest.mock('lucide-react', () => ({ + MoreHorizontal: () => null, + X: () => null, + Medal: () => null, +})); + jest.mock('@/actions/update-list', () => ({ updateList: jest.fn(), })); diff --git a/package.json b/package.json index e9dc6df..e381f6d 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "date-fns": "^4.1.0", "dompurify": "^3.2.3", "lodash": "^4.17.21", - "lucide-react": "^0.469.0", + "lucide-react": "^0.471.0", "next": "^15.1.4", "react": "^19.0.0", "react-day-picker": "^9.5.0", diff --git a/yarn.lock b/yarn.lock index 4b951a8..d276463 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9119,12 +9119,12 @@ __metadata: languageName: node linkType: hard -"lucide-react@npm:^0.469.0": - version: 0.469.0 - resolution: "lucide-react@npm:0.469.0" +"lucide-react@npm:^0.471.0": + version: 0.471.0 + resolution: "lucide-react@npm:0.471.0" peerDependencies: react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 - checksum: 10c0/0ee78d110550579b848a01446a440f733fd17e1bf1850aa01551b61f415e03e5f5ab7f26b56f1c648edc93856177f5476ff9f8f6f5d80e8fe45913d208f49961 + checksum: 10c0/d30342dd44b41cd4e29b340f5d927a61a4901a3545badeee9486704056b993c2463011de10e36536bc7f020a07d5c2b37a22b896c7f962e59e536516a619e1c8 languageName: node linkType: hard @@ -12468,7 +12468,7 @@ __metadata: jest-environment-jsdom: "npm:^29.7.0" jest-junit: "npm:^16.0.0" lodash: "npm:^4.17.21" - lucide-react: "npm:^0.469.0" + lucide-react: "npm:^0.471.0" next: "npm:^15.1.4" postcss: "npm:^8.4.49" prettier: "npm:^3.4.2"