title: Namespace 'jasmine' has no exported member 'SpyObj'
body: <p>I'm trying to create a spy object for my tests:</p>
  
  <pre><code>let spy: jasmine.SpyObj&lt;GeneralService&gt;;
  </code></pre>
  
  <p>Unfortunately, I'm getting this error when running <code>ng test</code>:</p>
  
  <pre><code>Namespace 'jasmine' has no exported member 'SpyObj'
  </code></pre>
  
  <p>In addition, WebStorm marks <code>SpyObj</code> as unresolved variable.</p>
  
  <p>Here is <code>devDependencies</code> from my <code>package.json</code>:</p>
  
  <pre><code>"devDependencies": {
      "@angular/cli": "1.7.3",
      "@types/jasmine": "2.5.36",
      "@types/node": "7.0.27",
      "jasmine": "~2.4.1",
      "jasmine-core": "~2.4.1",
      "karma": "^1.7.1",
      "karma-chrome-launcher": "^2.2.0",
      "karma-cli": "^1.0.1",
      "karma-jasmine": "^1.1.1",
      "karma-jasmine-html-reporter": "^0.2.2",
      "karma-phantomjs-launcher": "^1.0.2",
      "lodash": "4.16.2",
      "ts-node": "1.3.0",
      "tslint": "^3.15.1",
      "typescript": "2.6.2"
    }
  </code></pre>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I refer to Angular testing docs:
  <a href="https://angular.io/guide/testing" rel="noreferrer">https://angular.io/guide/testing</a></p>
  
  <pre><code>let masterService: MasterService;
  let valueServiceSpy: jasmine.SpyObj&lt;ValueService&gt;;
  
  beforeEach(() =&gt; {
    const spy = jasmine.createSpyObj('ValueService', ['getValue']);
  
    TestBed.configureTestingModule({
      // Provide both the service-to-test and its (spy) dependency
      providers: [
        MasterService,
        { provide: ValueService, useValue: spy }
      ]
    });
    // Inject both the service-to-test and its (spy) dependency
    masterService = TestBed.get(MasterService);
    valueServiceSpy = TestBed.get(ValueService);
  });
  </code></pre>
  
  <p>I end up configure spy as <code>any</code>:</p>
  
  <pre><code> let spy: any;
  </code></pre>