trurl-master / jsdom-testing-mocks

A set of tools for emulating browser behavior in jsdom environment
MIT License
116 stars 7 forks source link

`@media not all and ` is not supported #48

Open mg901 opened 1 year ago

mg901 commented 1 year ago

Hi, thank you for your awesome library.) I have been trying to test my own library and I encountered strange behavior.

Screenshot 2023-05-22 at 23 12 23

But, it's work in a browser.

I'm using jsdom-testing-mocks v1.9.0.

trurl-master commented 1 year ago

Hi!

Thank you for the issue and for the test case. I can confirm that there's a problem, probably not with the lib, but with the dependency we use (css-mediaquery). I will look into it when I have a little bit of time and get back to you.

One small note: if I understand correctly, in your test, the first expect should be true and the second false. But it's irrelevant