Jasmine

Jasmine is a behavior-driven development (BDD) framework for testing JavaScript code

Sinon

Sinon is a mocking framework for JavaScript, which can create spies, stubs and mocks.



Thing spies capable

Example

"The thing that makes sinon a better choice than jasmine spies is that it is capable of programming spies expectations withargs ... .called."

from question  

Angular Unit tests: Mocking multiple independent promises

"If i need to use a spy i d like to preferably know how to with jest but if a dep like sinon or jasmine is better suited for the job i m open to it just let me know why so i can better understand"

from question  

How to test functions in component with enzyme, jest, recompose, react

Others

Example

It should be mentioned that sinon provides many more features for smart stubs spies than jasmine so both can be used together

from question  

How to mock angularJs filter value for unit tests

You could do thies with jasmine spies but i suggest using sinon becuase sinon becuase supports more functionality

from question  

AngularJS testing : Jasmine mock callback

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0