Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge. Learn more →
Sinon.JS Alternatives
Similar projects and alternatives to Sinon.JS
-
-
mocha
☕️ simple, flexible, fun javascript test framework for node.js & the browser
-
SurveyJS
A Non-Cloud Alternative to Google Forms that has it all.. SurveyJS JavaScript libraries allow you to easily set up a robust form management system fully integrated into your IT infrastructure where users can create and edit multiple dynamic JSON-based forms in a no-code form builder. Learn more now.
-
chai
BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.
-
-
Playwright
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
-
proxyquire
🔮 Proxies nodejs require in order to allow overriding dependencies during testing.
-
-
Appwrite
Appwrite - The open-source backend cloud platform. The open-source backend cloud platform for developing Web, Mobile, and Flutter applications. You can set up your backend faster with real-time APIs for authentication, databases, file storage, cloud functions, and much more!
-
-
-
WebdriverIO
Next-gen browser and mobile automation test framework for Node.js
-
-
-
webpack
A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
-
supertest
🕷 Super-agent driven library for testing node.js HTTP servers using a fluent API. Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.
-
-
-
uvu
uvu is an extremely fast and lightweight test runner for Node.js and the browser
-
-
javascript-todo-list-tutorial
✅ A step-by-step complete beginner example/tutorial for building a Todo List App (TodoMVC) from scratch in JavaScript following Test Driven Development (TDD) best practice. 🌱
-
-
Amplication
Amplication: open-source Node.js backend code generator. An open-source platform that helps developers build backends without spending time on boilerplate & repetitive coding. Including production-ready GraphQL & REST APIs, DB schema, DTOs, filtering, pagination, RBAC, & more.
Sinon.JS reviews and mentions
-
Express API Testing
Mocha is a test runner, Chai is an assertion library, Sinon is a mocking library, this normally the combination you would need to use if you choose mocha, but there are others.
-
Alternative to AWS Mock
Instead, use pure functions + dependency inject your stubs (e.g. parameter to function). Also note, no need for Sinon or some other test double library. JavaScript is so good nowadays to easily make objects/classes/functions or any combination thereof on the fly that are terse.
-
Unit testing: What to use, and how?
I've had some good experiences with Ava + Sinon. I've personally disliked Jest because it seemed to do some weird trickery in the background that prevented me from using ES modules.
-
Can AI help me write tests on legacy code?
🤖 You can use the Mocha testing framework with the Chai assertion library to write tests for your Express controller. You can also use the Sinon library to mock the database calls. This will allow you to test the controller without actually making a call to the database. You can also use the SuperTest library to make HTTP requests to the controller and test the response.
-
Need help writing a jest test that mocks an API call which will update state
You can use sinon js to create a mock version of your http library (axios) that responds with the data you’re expecting.
-
Unit testing with React and Cypress
Assertions are the checkpoints of our test block that confirm if an automated test has passed or failed. Cypress bundles the Chai, jQuery, and Sinon.JS libraries for assertions. They check the desired, expected application in which the test is running. A complete listing of assertions can be found in the documentation here.
-
Typescript boilerplate test configuration with mocha, chai and sinon
Let's configure tests with mocha, chai and sinon on Typescript in a few steps.
-
16 Top NodeJS tools to make you a better developer
SinonJS For testing JavaScript, you can use SinonJS, a stand-alone framework. Compatible with any testing framework, it's compatible with stubs, spies, and mocks. In addition, it's cross-browser compatible and runs on NodeJS on the server.
-
How Do I Stub webpack's require.ensure?
My test setup is based on Mocha, Chai and Sinon.
-
Unit Testing Essentials for Express API: A Step-by-Step Guide
Standalone test spies, stubs and mocks for JavaScript: Sinon
-
A note from our sponsor - InfluxDB
www.influxdata.com | 29 Sep 2023
Stats
sinonjs/sinon is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.
The primary programming language of Sinon.JS is JavaScript.