title: NullInjectorError of feature store when testing component
body: <p>I try to fix the test of <code>LoginComponent</code>. The error came when the feature store (notification) component was moved to a lazy-loaded module from <code>SharedModule</code>. I have no idea what can be wrong here. I tested many configurations of the testing component with ngrx. Also, moving back <code>NotificationModule</code> (with feature store) doesn't fix the bug due to the strong-refactor that was made.</p>
  
  <pre><code>describe('LoginComponent', () =&gt; {
    let component: LoginComponent;
    let fixture: ComponentFixture&lt;LoginComponent&gt;;
    let store: MockStore&lt;State&gt;;
  
  
    beforeAll(() =&gt; {
      jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
    });
  
    beforeEach(async(() =&gt; {
      TestBed.configureTestingModule({
        imports: [
          StoreModule.forRoot(),
          HttpClientTestingModule,
          TranslateModule.forRoot(),
          ReactiveFormsModule,
          SharedModule,
        ],
        declarations: [LoginComponent],
        providers: [
          provideMockStore(),
        ]
      })
        .compileComponents();
  
      fixture = TestBed.createComponent(LoginComponent);
      component = fixture.componentInstance;
      store = TestBed.get(MockStore);
  
      spyOn(store, 'dispatch');
      fixture.detectChanges();
    }));
  </code></pre>
  
  <p>LoginModule which is imported in AppModule. </p>
  
  <pre><code>@NgModule({
    imports: [
      CommonModule,
      HttpClientModule,
      ReactiveFormsModule,
      SharedModule,
      TranslateModule,
    ],
    declarations: [
      LoginComponent,
    ],
  })
  export class LoginModule {}
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Failed: StaticInjectorError(DynamicTestModule)[NotificationEffects -&gt; Actions]: 
        StaticInjectorError(Platform: core)[NotificationEffects -&gt; Actions]: 
          NullInjectorError: No provider for Actions!
      error properties: Object({ ngTempTokenPath: null, ngTokenPath: [ 'NotificationEffects', Function ] })
          at &lt;Jasmine&gt;
          at NullInjector.get (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:855:1)
          at resolveToken (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:17514:1)
          at tryResolveToken (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:17440:1)
          at StaticInjector.get (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:17266:1)
          at resolveToken (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:17514:1)
          at tryResolveToken (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:17440:1)
          at StaticInjector.get (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:17266:1)
          at resolveNgModuleDep (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:30393:1)
          at _createClass (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:30470:1)
          at _createProviderInstance (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:30426:1)
      Error: Expected undefined to be truthy.
          at &lt;Jasmine&gt;
          at UserContext.&lt;anonymous&gt; (http://localhost:9876/_karma_webpack_/src/app/login/login.component.ngrx.spec.ts:67:23)
          at ZoneDelegate.invoke (http://localhost:9876/_karma_webpack_/node_modules/zone.js/dist/zone-evergreen.js:359:1)
          at ProxyZoneSpec.push../node_modules/zone.js/dist/zone-testing.js.ProxyZoneSpec.onInvoke (http://localhost:9876/_karma_webpack_/node_modules/zone.js/dist/zone-testing.js:308:1)
  </code></pre>