error TS2552: Cannot find name 'xdescribe'. Did you mean 'describe'?

1.7k views Asked by At

I am working on unit testing in angular application. And I have skipped some test suites by using xdescrie. Unfortunately, it is showing errors like error TS2552: Cannot find name 'xdescribe'. Did you mean 'describe'? when running the test by using the command ng test.

I have installed the package @types/jasmine as a Dev dependencies

1

There are 1 answers

0
Johnys On

the most probable cause for this problem could be that the package is not installed properly.

try to run this in your npm:

npm install --save-dev @types/jasmine

and then on the top of your .spec.ts file

import 'jasmine';