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';
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.