File tree 1 file changed +19
-1
lines changed
packages/analytics/testing
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import { FirebaseApp , initializeApp , _registerComponent } from '@firebase/app' ;
18
+ import {
19
+ FirebaseApp ,
20
+ initializeApp ,
21
+ _registerComponent ,
22
+ _addOrOverwriteComponent
23
+ } from '@firebase/app' ;
19
24
import { Component , ComponentType } from '@firebase/component' ;
20
25
import { _FirebaseInstallationsInternal } from '@firebase/installations' ;
21
26
import { AnalyticsService } from '../src/factory' ;
@@ -78,5 +83,18 @@ export function getFullApp(fakeAppParams?: {
78
83
)
79
84
) ;
80
85
const app = initializeApp ( { ...fakeConfig , ...fakeAppParams } ) ;
86
+ _addOrOverwriteComponent (
87
+ app ,
88
+ //@ts -ignore
89
+ new Component (
90
+ 'heartbeat' ,
91
+ ( ) => {
92
+ return {
93
+ triggerHeartbeat : ( ) => { }
94
+ } as any ;
95
+ } ,
96
+ ComponentType . PUBLIC
97
+ )
98
+ ) ;
81
99
return app ;
82
100
}
You can’t perform that action at this time.
0 commit comments