mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-19 03:01:53 +10:00
Updated Firebase mock
This commit is contained in:
@ -2,6 +2,7 @@ import React from 'react';
|
||||
import { render, cleanup } from '@testing-library/react';
|
||||
|
||||
import {
|
||||
__init as firebaseMockInit,
|
||||
__useDemoResume as firebaseMockUseDemoResume,
|
||||
__getResumeId as firebaseMockGetResumeId,
|
||||
} from 'gatsby-plugin-firebase';
|
||||
@ -13,6 +14,10 @@ import { StorageProvider } from '../../../contexts/StorageContext';
|
||||
|
||||
import Builder from '../builder';
|
||||
|
||||
beforeEach(() => {
|
||||
firebaseMockInit();
|
||||
});
|
||||
|
||||
afterEach(cleanup);
|
||||
|
||||
it('renders correctly', () => {
|
||||
|
||||
Reference in New Issue
Block a user