Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

VS code highlights jasmine functions in Angular 6

$
0
0

I've recently migrated to Angular 6.0. And VS Code highlights all jasmine functions as unknown. It works fine and runs tests successfully. How to let intellisense know about Jasmine?

In previous version some workaround worked:

import {} from "jasmine"

But it doesn't work any more.

Next import in test.ts also generates errors:

import 'jasmine';

enter image description here

Update: If I add "jasmine" to types in tsconfig.json - it does the trick. But it doesn't work with tsconfig.spec.json. I don't need this types in application bundle.


Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>