sinonjs.md

July 15, 2021 ยท View on GitHub

Bookmarks tagged [sinonjs]

www.codever.land/bookmarks/t/sinonjs

Unit Testing in Angular: Stubs vs Spies vs Mocks

https://www.amadousall.com/unit-testing-angular-stubs-vs-spies-vs-mocks/

In this article, I will show you the differences between the various kinds of test doubles, and how to use them when unit testing Angular applications using Jasmine.


Best Practices for Spies, Stubs and Mocks in Sinon.js - Semaphore

https://semaphoreci.com/community/tutorials/best-practices-for-spies-stubs-and-mocks-in-sinon-js

In this article, we'll show you the differences between spies, stubs and mocks, when and how to use them, and give you a set of best practices to help you avoid common pitfalls.


Sinon.JS

http://sinonjs.org/

Standalone test spies, stubs and mocks for JavaScript. Works with any unit testing framework.