You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, love the library. There's just a bit of an issue especially during vitest where I'm using jest-dom:
import "@testing-library/jest-dom"
I have to mock CSS.supports and window.matchMedia in the setup, but the problem gets worse because I'm using this library in a design-system, where a lot of other repos may be importing this. Can we alleviate some of the testing issues so we don't have to mock these two in every vitest setup?
Something like this would make consuming this library a lot more convenient #59
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, love the library. There's just a bit of an issue especially during vitest where I'm using jest-dom:
import "@testing-library/jest-dom"
I have to mock
CSS.supports
andwindow.matchMedia
in the setup, but the problem gets worse because I'm using this library in a design-system, where a lot of other repos may be importing this. Can we alleviate some of the testing issues so we don't have to mock these two in every vitest setup?Something like this would make consuming this library a lot more convenient #59
Beta Was this translation helpful? Give feedback.
All reactions