Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should I use instead of fit and fdescribe in Jasmine 3?

I get the error:

ERROR: 'DEPRECATION: fit and fdescribe will cause your suite to report an 'incomplete' status in Jasmine 3.0' 

I did a RTFM for Jasmine 3.0 but it did not mention anything about deprecation: https://jasmine.github.io/api/3.0/global.html#fit

like image 400
heldt Avatar asked May 28 '18 07:05

heldt


People also ask

What is fit in Jasmine?

fit will focus on a test or a set of them. so if you have 5 tests, 3 it and 2 fit , only the 2 with fit will run by Jasmine. ERROR: 'DEPRECATION: fit and fdescribe will cause your suite to report an 'incomplete' status in Jasmine 3.0'

What is Jasmine testing framework and how do you use it for angular unit testing?

Jasmine is a behavior development testing framework. Unit tests are written using Jasmine and are run to see if individual parts of an application are working correctly. As a result, unit tests will either pass or fail depending on if the code is working correctly or has a bug.


1 Answers

As per your link to fit docs

fit will focus on a test or a set of them.

so if you have 5 tests, 3it and 2fit, only the 2 with fit will run by Jasmine.

ERROR: 'DEPRECATION: fit and fdescribe will cause your suite to report an 'incomplete' status in Jasmine 3.0'

ERROR --> WARNING: Is telling you that only fit'S will run, therefore an incomplete test.

Thanks.

like image 195
T04435 Avatar answered Sep 20 '22 17:09

T04435