Bump lucide-react to latest version and Fixed Tests

This commit is contained in:
Ahmad 2025-01-10 18:42:42 -05:00
parent 5e650260d6
commit a44aadfe38
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
4 changed files with 12 additions and 39 deletions

View file

@ -11,39 +11,6 @@ exports[`Home renders homepage unchanged 1`] = `
<div
class="mb-4 flex items-center rounded-full border bg-amber-100 p-4 uppercase text-amber-700 shadow-sm"
>
<svg
class="lucide lucide-medal mr-2 h-6 w-6"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15"
/>
<path
d="M11 12 5.12 2.2"
/>
<path
d="m13 12 5.88-9.8"
/>
<path
d="M8 7h8"
/>
<circle
cx="12"
cy="17"
r="5"
/>
<path
d="M12 18v-2h-.5"
/>
</svg>
No 1 task management app
</div>
<h1

View file

@ -7,6 +7,12 @@ jest.mock('sonner', () => ({
},
}));
jest.mock('lucide-react', () => ({
MoreHorizontal: () => null,
X: () => null,
Medal: () => null,
}));
jest.mock('@/actions/update-list', () => ({
updateList: jest.fn(),
}));

View file

@ -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",

View file

@ -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"