Software Alternatives & Reviews

Jasmine VS Sinon.JS

Compare Jasmine VS Sinon.JS and see what are their differences

Jasmine logo Jasmine

Behavior-Driven JavaScript

Sinon.JS logo Sinon.JS

Standalone test spies, stubs and mocks for JavaScript.
  • Jasmine Landing page
    Landing page //
    2023-06-17
  • Sinon.JS Landing page
    Landing page //
    2023-10-09

Jasmine videos

Blue Jasmine - Movie Review by Chris Stuckmann

More videos:

  • Review - Blue Jasmine -- Movie Review
  • Review - Was Jasmine Ever Speechless? [Aladdin 2019 Review]

Sinon.JS videos

Sinon.js Tutorial - How to Use Sinon.js, the Mocking Library for Testing

More videos:

  • Review - JS.everywhere(2012): Unit Testing Your JS w QUnit and Sinon.JS - Nicholas Silva
  • Review - Stubbing Javascript date objects using Sinon.js - Stream Highlight

Category Popularity

0-100% (relative to Jasmine and Sinon.JS)
Automated Testing
100 100%
0% 0
Front End Package Manager
Testing
100 100%
0% 0
Development Tools
0 0%
100% 100

User comments

Share your experience with using Jasmine and Sinon.JS. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare Jasmine and Sinon.JS

Jasmine Reviews

20 Best JavaScript Frameworks For 2023
In the State of JS ranking, Cypress has already surpassed some previously leading best testing frameworks, such as Jasmine, and is now ranked fourth for testing, with 35.8% of testers citing Cypress as their preferred testing framework, which is nearly identical to Mocha.

Sinon.JS Reviews

We have no reviews of Sinon.JS yet.
Be the first one to post

Social recommendations and mentions

Jasmine might be a bit more popular than Sinon.JS. We know about 28 links to it since March 2021 and only 20 links to Sinon.JS. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Jasmine mentions (28)

  • Migrating from Jest to Vitest for your React Application
    Vitest makes it effortless to migrate from Jest. It supports the same Jasmine like API. - Source: dev.to / 5 months ago
  • Using Node.js for Automated Testing with Headless Browsers
    To execute your tests, you can create test scripts using popular testing frameworks like Mocha, Jasmine, or Jest. These frameworks provide a structured way to organize and run your tests, report results, and handle assertions. - Source: dev.to / 8 months ago
  • Road Map To Become a Web Developer
    Testing frameworks like Jest, Mocha, and Jasmine are crucial for software development, ensuring code reliability and correctness. They offer features like test suites, test cases, assertions, and asynchronous testing support. - Source: dev.to / 10 months ago
  • Naming Unit Tests Function
    The test framework used does matter for naming, because in some frameworks you'd use different naming conventions (i.e. The fluent naming used with https://jasmine.github.io/). Source: 10 months ago
  • Common Pitfalls in Angular Component Testing
    Learn more about Jasmine and Karma. - Source: dev.to / over 1 year ago
View more

Sinon.JS mentions (20)

  • Unit Testing in Node.js and TypeScript: A Comprehensive Guide with Jest Integration
    If you are using a mocking library, such as sinon, jest-mock, or ts-mockito, make sure that it is compatible with Jest. You may need to install additional packages or configure them in your configuration file. For example, to use sinon with Jest, you can install the sinon-jest package and add the following to your configuration file:. - Source: dev.to / 2 months ago
  • 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. Source: about 1 year ago
  • 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. - Source: dev.to / about 1 year ago
  • 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. Source: about 1 year ago
  • 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. - Source: dev.to / about 1 year ago
View more

What are some alternatives?

When comparing Jasmine and Sinon.JS, you can also consider the following products

Mocha - Sponsors. Use Mocha at Work? Ask your manager or marketing team if they'd help support our project. Your company's logo will also be displayed on npmjs. com and our GitHub repository.

Chai - Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.

Cypress.io - Slow, difficult and unreliable testing for anything that runs in a browser. Install Cypress in seconds and take the pain out of front-end testing.

QUnit - What is QUnit? QUnit is a powerful, easy-to-use JavaScript unit testing framework. It's used by the jQuery, jQuery UI and jQuery Mobile projects and is capable of testing any generic JavaScript code, including itself!

WebdriverIO - Webdriver module for Node.js. that makes it easier to write Selenium tests

Ava - Making conversations accessible for the deaf