Files
karma/ui/__mocks__/@sentry/browser.js
Łukasz Mierzwa 22a48301e8 feat(sentry): add ErrorBoundary to capture exceptions
* switch to new Sentry client lib
* Add ErrorBoundary as a wrapper around App to capture errors and display exception page with auto refresh
* rename all instances of Raven to Sentry
2018-09-19 21:08:22 +01:00

11 lines
249 B
JavaScript

const init = jest.fn();
const MockScope = {
setExtra: jest.fn()
};
const configureScope = jest.fn().mockImplementation(fn => {
fn(MockScope);
});
const captureException = jest.fn();
export { init, configureScope, captureException, MockScope };