UNPKG

firestore-jest-mock

Version:

Jest helper for mocking Google Cloud Firestore

22 lines 712 B
export function firebaseStub(overrides: any, options?: typeof defaultOptions): { initializeApp: jest.Mock<any, any>; credential: { cert: jest.Mock<any, any>; }; auth(): any; firestore: { (): any; Query: any; CollectionReference: any; DocumentReference: any; FieldValue: any; Timestamp: any; Transaction: any; FieldPath: any; }; }; export function mockFirebase(overrides?: {}, options?: typeof defaultOptions): void; export const mockInitializeApp: jest.Mock<any, any>; export const mockCert: jest.Mock<any, any>; import defaultOptions = require("./helpers/defaultMockOptions"); //# sourceMappingURL=firebase.d.ts.map