diff --git a/jest.setup.ts b/jest.setup.ts index c9ca6363..ba79ca32 100644 --- a/jest.setup.ts +++ b/jest.setup.ts @@ -26,6 +26,7 @@ jest.doMock('react-native', () => { ], }, RNFBPerfModule: {}, + RNFBCrashlyticsModule: {}, }, }, ReactNative, diff --git a/packages/crashlytics/__tests__/crashlytics.test.ts b/packages/crashlytics/__tests__/crashlytics.test.ts new file mode 100644 index 00000000..4653a42f --- /dev/null +++ b/packages/crashlytics/__tests__/crashlytics.test.ts @@ -0,0 +1,11 @@ +import { firebase } from '../lib'; + +describe('Crashlytics', () => { + describe('namespace', () => { + it('accessible from firebase.app()', () => { + const app = firebase.app(); + expect(app.crashlytics).toBeDefined(); + expect(app.crashlytics().app).toEqual(app); + }); + }); +}); diff --git a/packages/crashlytics/e2e/crashlytics.e2e.js b/packages/crashlytics/e2e/crashlytics.e2e.js index 961e551b..475ea42b 100644 --- a/packages/crashlytics/e2e/crashlytics.e2e.js +++ b/packages/crashlytics/e2e/crashlytics.e2e.js @@ -16,14 +16,6 @@ */ describe('crashlytics()', () => { - describe('namespace', () => { - it('accessible from firebase.app()', () => { - const app = firebase.app(); - should.exist(app.crashlytics); - app.crashlytics().app.should.equal(app); - }); - }); - // Run locally only - flakey on CI xdescribe('crash()', () => { it('crashes the app', async () => {