mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
* 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
11 lines
249 B
JavaScript
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 };
|