Angular 2 Unit Tests: Cannot find name ‘describe’

I hope you’ve installed –

npm install --save-dev @types/jasmine

Then put following import at the top of the hero.spec.ts file –

import 'jasmine';

It should solve the problem.

Leave a Comment