mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-07-06 04:38:32 -06:00
PR-421183: Adding Cypress and updating packages.
This commit is contained in:
14
setupTest.ts
14
setupTest.ts
@ -5,16 +5,16 @@
|
||||
import '@testing-library/jest-dom';
|
||||
|
||||
//import fetch Mock
|
||||
import fetchMock from "jest-fetch-mock";
|
||||
import fetchMock from 'jest-fetch-mock';
|
||||
fetchMock.enableMocks();
|
||||
|
||||
//Fixing Pollyfill for react-slick
|
||||
window.matchMedia =
|
||||
window.matchMedia ||
|
||||
function() {
|
||||
return {
|
||||
matches: false,
|
||||
addListener: function() {},
|
||||
removeListener: function() {}
|
||||
};
|
||||
};
|
||||
return {
|
||||
matches: false,
|
||||
addListener: () => {/**/},
|
||||
removeListener: () => {/**/}
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user