Error monitoring & reporting for JavaScript Automatically detect JavaScript errors in the browser, Node.js and React Native, with plugins for React, Vue, Angular, Express, Restify and Koa. Get cross-platform error detection for handled and unhandled errors with real-time error alerts and detailed diagnostic reports. Learn more about JavaScript error reporting and React Native error reporting from Bugsnag. This is a…
Automatically detect JavaScript errors in the browser, Node.js and React Native, with plugins for React, Vue, Angular, Express, Restify and Koa. Get cross-platform error detection for handled and unhandled errors with real-time error alerts and detailed diagnostic reports.
This is a monorepo (managed with Lerna containing our universal error reporting client @bugsnag/js, and our React Native client @bugsnag/react-native, along with:
the core Bugsnag libraries for reporting errors (@bugsnag/core)
Most updates to this repo will be made by Bugsnag employees. We are unable to accommodate significant external PRs such as features additions or any large refactoring, however minor fixes are welcome. See contributing for more information.
Development quick start
# Clone the repository
git clone [email protected]:bugsnag/bugsnag-js.git --recursive
cd bugsnag-js
# Install top-level dependencies
npm i
# Build the standalone notifiers and plugins
npm run build
# Run the unit tests
npm run test:unit
# Run tests for a specific package
npm run test:unit -- --testPathPattern="packages/react-native"
# Generate a code coverage report
npm run test:unit -- --coverage
# Run the linter
npm run test:lint
# Run the typescript compatibility tests
npm run test:types
评论