mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-19 11:12:00 +10:00
Firebase mock: mock auth() signIn, in order to trigger onAuthStateChanged
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { render, cleanup } from '@testing-library/react';
|
||||
|
||||
import {
|
||||
import firebase, {
|
||||
__init as firebaseMockInit,
|
||||
__useDemoResume as firebaseMockUseDemoResume,
|
||||
__getResumeId as firebaseMockGetResumeId,
|
||||
@ -36,6 +36,8 @@ it('renders correctly', async () => {
|
||||
</UserProvider>,
|
||||
);
|
||||
|
||||
await firebase.auth().signInAnonymously();
|
||||
|
||||
expect(container).toBeTruthy();
|
||||
//expect(container).toBeInTheDocument();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user