lucide/packages/lucide-react/tests
Vugar Bakhishov 588113e359
test(build-icons): cover Windows file URL imports (#4862)
* fix(dev): import icon templates with file URLs

Convert the resolved template path to an encoded file URL so the Node.js ESM loader accepts Windows paths and URL characters.

* fix(dev): import icon metadata with file URLs

Encode metadata file paths before dynamic JSON import, including Windows drive paths and URL characters.

* test(dev): cover icon build assets in paths with URL characters

Run the icon CLI in a Node process with a small SVG and metadata fixture; verify generation and metadata in a path containing spaces, # and %.

* test(build-icons): cover Windows file URL imports

---------

Co-authored-by: Vugar Bakhishov <vugarbbakhishov-hub@users.noreply.github.com>
2026-11-02 18:00:04 +01:00
..
__snapshots__ feat(packages): extract icon build logic into @lucide/shared (#4409) 2026-09-04 16:38:01 +02:00
build-icons.spec.ts test(build-icons): cover Windows file URL imports (#4862) 2026-11-02 18:00:04 +01:00
context.spec.tsx feat(packages): extract icon build logic into @lucide/shared (#4409) 2026-09-04 16:38:01 +02:00
createLucideIcon.spec.tsx feat(packages): extract icon build logic into @lucide/shared (#4409) 2026-09-04 16:38:01 +02:00
directives.spec.ts fix(lucide-react): correct client directives in RSC files (#4189) 2026-03-23 14:57:14 +01:00
DynamicIcon.spec.tsx fix(lucide-react): ignore stale DynamicIcon loads after the name changes (#5060) 2026-10-27 07:45:01 +01:00
dynamicImports.spec.tsx feat(icon-component): Creating icons with iconNodes (#1997) 2024-04-26 17:59:04 +02:00
Icon.spec.tsx feat(packages): Added aria-hidden fallback for decorative icons to all packages (#3604) 2026-01-20 15:55:02 +01:00
lucide-react.spec.tsx feat(packages): extract icon build logic into @lucide/shared (#4409) 2026-09-04 16:38:01 +02:00
setupVitest.js Improve formatting (#1814) 2024-02-01 14:38:21 +01:00
testIconNodes.ts feat(icon-component): Creating icons with iconNodes (#1997) 2024-04-26 17:59:04 +02:00