[bug]: Cannot use vitest as UT library #1431
Labels
issue: bug
Issue reporting a bug
severity: low
If the issue only affects a very niche base of users and an easily implemented workaround can solve
source: primitives
relates to primitives package
status: confirmed
Confirmed by a Strapi Team member or multiple community members
What version of strapi-design-system are you using?
1.12.2
What's Wrong?
vitest consumes mjs bundles which throw these type of errors
more info: https://github.com/vitest-dev/vitest/discussions/4233types
To Reproduce
Unit test a component containing a
SimpleMenu
or aCombobox
Expected Behaviour
The design system should be testable using vitest library.
At the moment this issue can be bypassed by updating the
export
section of the package to use onlyjs
files, and notmjs
. But it seems an ugly workaround that could damage other consumers of the design systemfrom
to
The text was updated successfully, but these errors were encountered: