Monday, 25 January 2021

Jasmine test case are failing, when testing setTimeout inside function

Good Day Everyone,

I am quite new to testing frameworks Jasmine. We have a TS project setup and I am trying to test a function consisting of setTimeout, but it keeps failing. I am trying to use Clock

One Important point I noticed is that I am using babel-loader as soon as I change the webpack configuration to ts-loader. The test case doesn't fail. (Don't know Why). I am sure something is wrong with configurations. I have checked multiple times but no luck.

Any suggestion would be helpful.

Created a GitHub repository:

https://github.com/dollysingh3192/ts-babel-template

With babel-loader(Test case fail's) Screenshot:

enter image description here

With ts-loader(Test cases passed) Screenshot:

enter image description here



from Jasmine test case are failing, when testing setTimeout inside function

No comments:

Post a Comment