External resources
Articles elsewhere on the web
- How to stub or mock complex objects, such as DOM objects
- Using Sinon.js with Promises
- Best practices for spies, stubs and mocks
- Using Sinon.js to help test Mongoose models
- Stubbing HTTP Requests With Sinon
- Stubbing Node Authentication Middleware with Sinon
- Testing ImmutableJS with Sinon custom matchers
- SinonJS Fundamentals (Pluralsight course)
Related libraries
- proxyquire — Proxies Node.js require to override dependencies during testing
- inject-loader — Webpack loader that allows overriding dependencies during testing
- fetch-mock — Mock HTTP requests made using fetch
- mock-socket — Mocking library for WebSockets and socket.io
- testdouble.js — Minimal test double library for TDD with JavaScript
