title: NullInjectorError: No provider for HttpClient
body: <p>I am testing an angular service that uses Apollo and graphql, I receive <strong>No provider for HttpClient!</strong> Error even though I add HttpClientTestingModule to the imports..</p>
  
  <p>rules.spec.ts</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import { PlatformGraphQLService } from 'platform-graphql'
  import { TestBed, ComponentFixture } from '@angular/core/testing'
  import { RulesService } from './rules.service'
  import {
    ApolloTestingModule,
    ApolloTestingController
  } from 'apollo-angular/testing'
  import { async } from '@angular/core/testing'
  import { HttpClientTestingModule } from '@angular/common/http/testing'
  import { Apollo, ApolloModule } from 'apollo-angular'
  
  describe('RulesService', () =&gt; {
    let controller: ApolloTestingController
    beforeEach(() =&gt; {
      TestBed.configureTestingModule({
        imports: [
          ApolloTestingModule,
          HttpClientTestingModule,
        ],
        providers: [
          PlatformGraphQLService,
        ],
      })
      controller = TestBed.get(ApolloTestingController)
    })
  
    it('should be created', async(() =&gt; {
      const service: RulesService = TestBed.get(RulesService)
      expect(service).toBeTruthy()
    }))
  
  
  })</code></pre>
  </div>
  </div>
  </p>