/* eslint-disable jest/expect-expect, jest/no-disabled-tests */ import Bugsnag, { Breadcrumb, Event, Session } from '..' describe.skip('@bugsnag/electron types', () => { describe('renderer', () => { // TODO this would ideally not be allowed but is currently possible it('can be started with an API key', () => { Bugsnag.start('abababababababababababababababab') }) it('can be started with no properties specified', () => { Bugsnag.start() }) it('can be started with all properties specified', () => { Bugsnag.start({ context: 'contextual', logger: { debug: () => {}, info: () => {}, warn: () => {}, error: () => {} }, metadata: { a: 1, b: 'yes', c: { d: [] } }, onError: (event: Event) => {}, onBreadcrumb: (breadcrumb: Breadcrumb) => {}, plugins: [], user: { id: '1234-abcd' }, appType: 'good', codeBundleId: '1245' }) }) }) describe('main', () => { it('can be started with an API key', () => { Bugsnag.start('abababababababababababababababab') }) // TODO this would ideally not be allowed at compile time but is currently possible it('can be started with no properties specified', () => { Bugsnag.start() }) it('can be started with all properties specified', () => { Bugsnag.start({ apiKey: 'abababababababababababababababab', appType: 'good', appVersion: '12312312', autoDetectErrors: true, autoTrackSessions: true, context: 'contextual', enabledBreadcrumbTypes: [ 'navigation', 'request', 'process', 'log', 'user', 'state', 'error', 'manual' ], enabledErrorTypes: { unhandledExceptions: true, unhandledRejections: false, nativeCrashes: true }, enabledReleaseStages: ['vOv', 'VoV'], endpoints: { notify: 'notify.example.com', sessions: 'sessions.example.com' }, logger: { debug: () => {}, info: () => {}, warn: () => {}, error: () => {} }, maxBreadcrumbs: 28, metadata: { a: 1, b: 'yes', c: { d: [] } }, onBreadcrumb: (breadcrumb: Breadcrumb) => {}, onError: (event: Event) => {}, onSession: (session: Session) => {}, plugins: [], redactedKeys: ['b'], releaseStage: 'vOv', user: { id: '1234-abcd' } }) }) }) })