The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 23 JavaScript Testing Projects
-
javascript-testing-best-practices
📗🌐 🚢 Comprehensive and exhaustive JavaScript & Node.js testing best practices (July 2023)
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
react-testing-library
🐐 Simple and complete React DOM testing utilities that encourage good testing practices.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
volkswagen
:see_no_evil: Volkswagen detects when your tests are being run in a CI server, and makes them pass.
-
nightwatch
Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
-
artillery
Load testing at cloud-scale. Serverless & distributed out-of-the-box. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module. Never fail to scale with Artillery!
-
jest-image-snapshot
✨ Jest matcher for image comparisons. Most commonly used for visual regression testing.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
In this blog post, we'll explore a Cypress test that replicates this scenario, utilizing the powerful intercept command to manipulate network requests and responses.
Project mention: Comprehensive and exhaustive JS & Node.js testing best practices (July 2023) | /r/softwarecrafters | 2023-11-30
We use Jest Framework for testing. Jest is not a dogma, and, of course, in its place can be any other test runner, such as Mocha or Ava. Let's focus on tests. I'll provide a short example because I don’t want to waste your time. You can find the full version here. It's crucial to read the comments in the code below. Let's go!
Probably Enzyme was the first to popularize component testing in React by doing shallow rendering and expecting some things to be there in the React component tree. Then React Testing library came and took component testing to a whole new level.
React Testing Library
Jasmine is a behavior-driven development framework for testing JavaScript code. It's known for its clean, straightforward syntax and does not rely on any other JavaScript frameworks or a Document Object Model (DOM). Jasmine is often praised for its simplicity and ease of use in both frontend and backend testing environments.
Project mention: "Volkswagen' detects when your tests are being run in a CI server | news.ycombinator.com | 2024-04-09
Nightwatch which will prompt to create a boilerplate framework specifically for Mobile / TV apps.
Nope. Not even on 0.71 yet https://github.com/wix/Detox/issues/3884
Project mention: Polly.js – Record, replay, and stub HTTP interactions | news.ycombinator.com | 2024-01-08They "pushed" out this project in 2018
https://github.com/Netflix/pollyjs/commit/281115d359ee0da5e0...
Usually, I would let organic users be my load test. However, I am working on a project that has an anticipated load on a new-to-my-team stack, so I'm looking into ways to load test.
I've seen tools like k6 (https://k6.io/), Artillery (https://www.artillery.io), and JMeter (https://jmeter.apache.org/).
I've been using Artillery, but it's hard to visualize the results.
What do you use?
Project mention: Having deps is a good thing, and disk space is infinite and free | /r/programmingcirclejerk | 2023-05-18
Project mention: ADA Compliance Made Easy: ADA Testing for Websites and Applications | dev.to | 2024-04-22The reports often rank the issues by severity level and provide actionable solutions. Using these reports, developers can prioritize accessibility fixes and improve their products' accessibility. Popular examples of automated testing tools include Axe, WAVE, and SiteImprove. Also, most modern browsers offer built-in accessibility audits within their developer tools.
Native code coverage via v8 or istanbul.
Project mention: Exploring Mirage JS: Simplifying API Mocking in React Development | dev.to | 2023-08-07Mirage JS GitHub Repository
Project mention: Mastering Jest Configuration for React TypeScript Projects with Vite: A Step-by-Step Guide | dev.to | 2023-12-15//config/jest/setupTests.ts // jest-dom adds custom jest matchers for asserting on DOM nodes. // allows you to do things like: // expect(element).toHaveTextContent(/react/i) // learn more: https://github.com/testing-library/jest-dom import '@testing-library/jest-dom';
Dredd: used to test APIs based on the API blueprint or OpenAPI specification, to ensure implementation matches the specification.
Mocha can also run in the browser: https://mochajs.org/#running-mocha-in-the-browser. An alternative library that can also run in the browser is QUnit: https://qunitjs.com/. You can include both with
Pa11y is your automated accessibility testing pal (https://pa11y.org/) by Rowan Manning
You can give a try about visual testing. I think about Cypress components and Cypress Image snapshot or Jest Image snapshot (not DOM testing)
JavaScript Testing related posts
- ADA Compliance Made Easy: ADA Testing for Websites and Applications
- Tracetest + Artillery Launch Week Recap 💥
- How to Write Accessible Technical Documentation – Best Practices with Examples
- "Volkswagen' detects when your tests are being run in a CI server
- Introdução a testes unitários no desenvolvimento de software
- JS Toolbox 2024: Bundlers and Test Frameworks
- Responsive design and cross-device testing
-
A note from our sponsor - WorkOS
workos.com | 27 Apr 2024
Index
What are some of the best open-source Testing projects in JavaScript? This list will help you:
Project | Stars | |
---|---|---|
1 | Cypress | 46,143 |
2 | javascript-testing-best-practices | 23,539 |
3 | mocha | 22,421 |
4 | ava | 20,621 |
5 | Enzyme | 19,964 |
6 | react-testing-library | 18,638 |
7 | jasmine | 15,717 |
8 | volkswagen | 13,208 |
9 | nightwatch | 11,715 |
10 | Detox | 10,949 |
11 | pollyjs | 10,191 |
12 | artillery | 7,477 |
13 | web-skills | 6,830 |
14 | tape | 5,757 |
15 | axe-core | 5,649 |
16 | nyc | 5,521 |
17 | miragejs | 5,281 |
18 | jest-dom | 4,290 |
19 | dredd | 4,125 |
20 | CodeceptJS | 4,054 |
21 | qunit | 4,006 |
22 | pa11y | 3,954 |
23 | jest-image-snapshot | 3,775 |
Sponsored