(identifier: string, app?: FirebaseApp)
| 29 | } |
| 30 | |
| 31 | export const ɵgetAllInstancesOf = <T= unknown>(identifier: string, app?: FirebaseApp): T[] => { |
| 32 | const apps = app ? [app] : getApps(); |
| 33 | const instances: any[] = []; |
| 34 | apps.forEach((app: FirebaseAppWithContainer) => { |
| 35 | const provider: any = app.container.getProvider(identifier as never); |
| 36 | provider.instances.forEach((instance: any) => { |
| 37 | if (!instances.includes(instance)) { |
| 38 | instances.push(instance); |
| 39 | } |
| 40 | }); |
| 41 | }); |
| 42 | return instances; |
| 43 | }; |
no test coverage detected