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

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



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Johnys