rozetko
2 years ago
6 changed files with 0 additions and 42 deletions
@ -1,4 +0,0 @@
|
||||
export const getBackendSrv = () => ({ |
||||
get: jest.fn(), |
||||
post: jest.fn(), |
||||
}); |
@ -1,15 +0,0 @@
|
||||
// @ts-ignore
|
||||
export default global.matchMedia = |
||||
global.matchMedia || |
||||
function (query) { |
||||
return { |
||||
matches: false, |
||||
media: query, |
||||
onchange: null, |
||||
addListener: jest.fn(), |
||||
removeListener: jest.fn(), |
||||
addEventListener: jest.fn(), |
||||
removeEventListener: jest.fn(), |
||||
dispatchEvent: jest.fn(), |
||||
}; |
||||
}; |
@ -1,8 +0,0 @@
|
||||
module.exports = { |
||||
process() { |
||||
return { code: 'module.exports = {};' }; |
||||
}, |
||||
getCacheKey() { |
||||
return 'svgTransform'; |
||||
}, |
||||
}; |
@ -1,13 +0,0 @@
|
||||
export function mockUseStore() { |
||||
jest.mock('state/useStore', () => ({ |
||||
useStore: () => ({ |
||||
isUserActionAllowed: jest.fn().mockReturnValue(true), |
||||
}), |
||||
})); |
||||
} |
||||
|
||||
export function mockGrafanaLocationSrv() { |
||||
jest.mock('@grafana/runtime', () => ({ |
||||
getLocationSrv: jest.fn(), |
||||
})); |
||||
} |
Loading…
Reference in new issue