We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f369f2 commit eca9015Copy full SHA for eca9015
redisinsight/ui/src/utils/test-utils.tsx
@@ -253,6 +253,7 @@ jest.mock('uiSrc/constants/recommendations', () => ({
253
254
// mock to not import routes
255
jest.mock('uiSrc/utils/routing', () => ({
256
+ ...jest.requireActual('uiSrc/utils/routing'),
257
getRedirectionPage: jest.fn(),
258
}))
259
@@ -281,7 +282,7 @@ const matchMediaMock = () => ({
281
282
283
Object.defineProperty(window, 'matchMedia', {
284
writable: true,
- value: jest.fn().mockImplementation(query => matchMediaMock(query)),
285
+ value: jest.fn().mockImplementation((query) => matchMediaMock(query)),
286
})
287
288
export const getMswResourceURL = (path: string = '') => RESOURCES_BASE_URL.concat(path)
0 commit comments