jsdom-testing-mocks icon indicating copy to clipboard operation
jsdom-testing-mocks copied to clipboard

`@media not all and ` is not supported

Open mg901 opened this issue 2 years ago • 1 comments
trafficstars

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.

mg901 avatar May 22 '23 18:05 mg901

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

trurl-master avatar May 22 '23 23:05 trurl-master