Repository navigation
π§ͺ test: add missing tests for cn utility - #39
Conversation
Added test suite in ui-v2/src/lib/cn.test.ts to verify the `cn` classname merger function. Tests cover simple string merging, clsx conditional logic, array/object inputs, Tailwind conflict resolution with twMerge, and falsy/empty inputs. Co-authored-by: jasandroidx <77057656+jasandroidx@users.noreply.github.com>
|
π Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a π emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Added missing unit tests for the
cnutility inui-v2/src/lib/cn.test.ts.π― What
ui-v2/src/lib/cn.tswherecnlacked direct unit test coverage.π Coverage
foo bar).clsx(isBarActive && "bar").twMerge(p-4vsp-2).β¨ Result
pnpm testand code passes ESLint checks cleanly (pnpm lint).PR created automatically by Jules for task 8848603167490716798 started by @jasandroidx