Recently, I made the switch to Angular 6.0
. However, in VS Code
, all jasmine functions are being highlighted as unknown even though they work fine and the tests run successfully. How can I make intellisense recognize Jasmine
?
In previous versions, a workaround involving:
import {} from "jasmine"
would work, but no longer does.
Also, importing 'jasmine' in test.ts generates errors:
import 'jasmine';
https://i.sstatic.net/VPyRE.png
Update: Adding "jasmine"
to the types
section of tsconfig.json
solves the problem. However, it doesn't work with tsconfig.spec.json
. I don't want these types included in the application bundle.