Radix Primitives is an open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @workos.
15.91k
stars
831
forks
source link
Slider component is unable to be tested in vitest #3194
Open
Kikketer opened 3 weeks ago
Bug report
Current Behavior
I'm unable to use vitest to test the slider component even when using the vitest.setup recommendations from previous bug reports.
https://github.com/Kikketer/vitest-slider-test/blob/716baf6a014eebb5a18123da7cd3a3d7a6830d85/vitest.setup.ts
Expected behavior
Vitest + slider component should be testable, even if it does require some modifications to the vitest.setup file.
Reproducible example
https://github.com/Kikketer/vitest-slider-test
Suggested solution
Perhaps a bit of documentation (as suggested here) around how to setup vitest + radix slider
Additional context
Your environment