ibm-products
ibm-products copied to clipboard
move matchMedia into default jest setup
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.