After adding the react-slick slider to my webpack project, my chai test began to fail with
C:\project\proj\js\node_modules\enquire.js\dist\enquire.js:226
throw new Error('matchMedia not present, legacy browsers require a polyfill');
^
Error: matchMedia not present, legacy browsers require a polyfill
at Object.MediaQueryDispatch (C:\project\proj\js\node_modules\enquire.js\dist\enquire.js:226:19)
at C:\project\proj\js\node_modules\enquire.js\dist\enquire.js:291:9
at i (C:\project\proj\js\node_modules\enquire.js\dist\enquire.js:11:20)
at Object.<anonymous> (C:\project\proj\js\node_modules\enquire.js\dist\enquire.js:21:2)
The only fix for this problem that the author of the slider component recommended here is for jest. I have tried that in my environment but it did not work.