Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 418 Bytes

File metadata and controls

15 lines (9 loc) · 418 Bytes

react-native-app-helpers/errorReporter

A wrapper around console and Sentry for easier mocking in tests.

Usage

import { errorReporter } from "react-native-app-helpers";

errorReporter.report(new Error(`An example error.`));

Interface

This package also exports a ErrorReporterInterface type which can be used to substitute other types in place of this object (for unit tests, for example).