Skip to content

chore: improve clsx maintenance path#117

Open
quyentonndbs wants to merge 1 commit into
lukeed:masterfrom
quyentonndbs:maint/20260522003502
Open

chore: improve clsx maintenance path#117
quyentonndbs wants to merge 1 commit into
lukeed:masterfrom
quyentonndbs:maint/20260522003502

Conversation

@quyentonndbs
Copy link
Copy Markdown

Summary:

  • Add edge-case unit tests in test/index.js covering currently-untested inputs to clsx(): deeply nested arrays mixed with falsy values (null, undefined, false, 0, ''), Symbol values (should be ignored / produce no class), and objects with inherited enumerable keys (verify own-property behavior). These exercise existing branches in src/index.js without changing behavior, improving regression coverage.
  • Keep the change narrow so it is straightforward to review.

Notes:

  • I kept this scoped to the relevant implementation and tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant