I'm trying to learn unit testing via Jest and I'm having trouble with AngularFire2 in Angular 9 in a Server-side Rendered app (SSR) I'm working on for my wife, and to get better at Angular.
I get a bunch of "should create" errors when I run `ng test --coverage` that look like this:
NullInjectorError: R3InjectorError(DynamicTestModule)[FirebaseDataService -> AngularFireAuth -> InjectionToken angularfire2.app.options -> InjectionToken angularfire2.app.options]:
NullInjectorError: No provider for InjectionToken angularfire2.app.options!
When I've searched on this error, and I've searched a bunch, I see that the solution is to sub the AngularFire modules so as to not actually talk to any database. I believe I've subbed the AngularFireDatabase, AngularFireAuth, and AngularFIreAnalytics modules, but I still get that same error whenever my FirebaseDataService get loaded.
I sub AngularFireAuthModule in app.component.spec.ts yet /services/firebasedata.service.spec.ts still has issues with AngularFireAuth
Can someone see where I'm messing up the subbing of AngularFireAuth for my authSub?
Thank you!