ibm-products icon indicating copy to clipboard operation
ibm-products copied to clipboard

move matchMedia into default jest setup

Open davidmenendez opened this issue 9 months ago • 0 comments

while working on a fix for window.matchMedia breaking in server side rendering apps i implemented a less than optimal fix in order to get the fix out ASAP. basically we have mocks for window.matchMedia all over our tests. we should just be able to include it once in ibm-jest-config-ibm-cloud-cognative and honestly probably any other redundant window mocks we have across our tests.

i gave it a quick try to implement it, but it breaks a few different tests, so implementation will probably require some test updating in addition to removing all the extraneous matchMedia mocks.

davidmenendez avatar May 01 '24 13:05 davidmenendez