JavaScript Assertion

Open-source JavaScript projects categorized as Assertion

Top 8 JavaScript Assertion Projects

  • Enzyme

    JavaScript Testing utilities for React

    Project mention: Speeding up the JavaScript ecosystem – Polyfills gone rogue | | 2023-09-21

    ljharb is an extremely interesting person. There’s no doubting the positive impact he’s had on the OSS community and the work he’s done.

    However, there are some things he does that are incomprehensible.

    For example, Enzyme. Over three years ago this issue was opened for Enzyme on React 17:

    Nothing moved for a while, and I think he said something along the lines of “if you want React 17 support, stop complaining and help”. So the community got involved. There are multiple PRs adding React 17 support. Many unofficial React 17 adapters. A lot of people have put a lot of work into this, ensuring compatibility, coverage etc. Yet to this day, none of them have been merged. Eg

    Given the amount of time that has passed, and the work the community has put in, something is amiss. It feels like he’s now intentionally avoiding React 17+ support. But why? I don’t understand why someone would ask for help then ignore the help when it comes in. That isn’t much better than the swathe of rude/entitled comments he was getting on the issue before he locked it.

    I ended up migrating to RTL, but this made many of my tests more complicated (especially compared to shallow rendering).

  • Sinon.JS

    Test spies, stubs and mocks for JavaScript.

    Project mention: Express API Testing | /r/node | 2023-03-07

    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.

  • 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.

  • proxyquire

    🔮 Proxies nodejs require in order to allow overriding dependencies during testing.

    Project mention: Best practices for writing testable ES6 modules | /r/learnjavascript | 2023-06-08

    Take a look at proxyquire: - they do some fancy magic to allow you to stub es module imports.

  • expect.js

    Minimalistic BDD-style assertions for Node.JS and the browser.

  • zora

    Lightest, yet Fastest Javascript test runner for nodejs and browsers

  • TypL

    The Type Linter for JS

  • 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.

  • cy-spok

    Playing with spok inside Cypress

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-09-21.

JavaScript Assertion related posts


What are some of the best open-source Assertion projects in JavaScript? This list will help you:

Project Stars
1 Enzyme 19,997
2 Sinon.JS 9,422
3 chai 7,949
4 proxyquire 2,739
5 expect.js 2,098
6 zora 492
7 TypL 358
8 cy-spok 37
Tired of breaking your main and manually rebasing outdated pull requests?
Managing outdated pull requests is time-consuming. Mergify's Merge Queue automates your pull request management & merging. It's fully integrated to GitHub & coordinated with any CI. Start focusing on code. Try Mergify for free.