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. Learn more →
Top 20 JavaScript Tdd Projects
-
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.
-
chai
BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.
-
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.
-
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. 🌱
-
cicd-with-herokuci
This is a demo factorial app for the building CI/CD workflow with Heroku CI article https://blog.mikemwanje.dev/build-a-cicd-pipeline-with-heroku-ci. The application calculates the factorial of a number.
-
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.
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!
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.
Run ng test to execute the unit tests via Karma.
Project mention: Unit Testing in Node.js and TypeScript: A Comprehensive Guide with Jest Integration | dev.to | 2024-03-03If 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:
I recently came across a workaround for this issue by using the expect.toBeOneOf() matcher from the jest-extended library. This matcher allows you to check whether a value matches one of the expected values, including null and undefined.
Also, if you have the time, it would be awesome if I could get you to write this up in the Ideas discussion category, that would be really helpful. 🙇
Project mention: Jest not recommended to be used in Node.js due to instanceOf operator issues | news.ycombinator.com | 2023-06-30I am currently one of the maintainers of Oletus.
[1] https://bun.sh/docs/cli/test
[2] https://github.com/oven-sh/bun/issues/3158
[3] https://github.com/bearror/oletus
JavaScript Tdd related posts
- JS Toolbox 2024: Essential Picks for Modern Developers Series Overview
- Road Map To Become a Web Developer
- Naming Unit Tests Function
- How To Use expect.objectContaining With Null and Undefined
- Alternative to AWS Mock
- Unit testing: What to use, and how?
- Can AI help me write tests on legacy code?
-
A note from our sponsor - SurveyJS
surveyjs.io | 25 Apr 2024
Index
What are some of the best open-source Tdd projects in JavaScript? This list will help you:
Project | Stars | |
---|---|---|
1 | mocha | 22,421 |
2 | ava | 20,621 |
3 | jasmine | 15,717 |
4 | karma | 11,921 |
5 | Sinon.JS | 9,556 |
6 | chai | 8,064 |
7 | tap | 2,305 |
8 | jest-extended | 2,291 |
9 | mochawesome | 1,042 |
10 | enzyme-matchers | 894 |
11 | xv | 830 |
12 | Jasmine-Matchers | 587 |
13 | javascript-todo-list-tutorial | 565 |
14 | baretest | 421 |
15 | gokiburi | 135 |
16 | oletus | 45 |
17 | Software-Design-Articles | 8 |
18 | cicd-with-herokuci | 3 |
19 | Project5 | 1 |
20 | tdd-fql-jest | 0 |
Sponsored