I have a series of functions, each performing various firestore interactions. How do I use Jest to mock these firestore calls? I would like to avoid using a library.
I found that mocking the import works well. I added this code in the test, above where I render my component importing 'firebase/app'
jest.mock('firebase/app', () => ({ __esModule: true, default: { apps: [], initializeApp: () => {}, auth: () => {}, }, }));