The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more β
Top 19 JavaScript unit-testing 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.
-
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.
-
electron-nuxt
β‘ An Electron & Nuxt.js / Vue.js quick start boilerplate with vue-cli scaffolding, electron-builder, unit/e2e testing, vue-devtools
-
currency-api
A demo project on how to test a node/express app with Mocha, Nock and proxyquire (MNP) and code coverage with nyc/istanbul. (by geshan)
-
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!
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:
Dredd: used to test APIs based on the API blueprint or OpenAPI specification, to ensure implementation matches the specification.
Ejecting a React app is a bad idea because our application will lose all the React configurations and will not benefit from the CRA updates. Some solutions for ejecting our application include using packages like react-app-rewired or rewire. You can also use CRACO to eject your React application, but it needs you to install additional plugins.
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 unit-testing related posts
- AWS Serverless Production Readiness Checklist
- Configuring Cypress, cypress-react-unit-test, and React
- I will pay you cash to delete your NPM module
- Simple Vue composition api unit test utilities
- Client suddenly adopted Cypress while I have no base knowledge of Javascript or Cypress itself
- Tests that help you find defects faster
- Docker build example: how to go from slow to fast docker builds
-
A note from our sponsor - WorkOS
workos.com | 26 Apr 2024
Index
What are some of the best open-source unit-testing projects in JavaScript? This list will help you:
Project | Stars | |
---|---|---|
1 | ava | 20,621 |
2 | Sinon.JS | 9,556 |
3 | dredd | 4,125 |
4 | cypress-example-recipes | 3,370 |
5 | rewire | 3,070 |
6 | redux-saga-test-plan | 1,245 |
7 | enzyme-to-json | 953 |
8 | enzyme-matchers | 894 |
9 | electron-nuxt | 712 |
10 | Jasmine-Matchers | 587 |
11 | restqa | 79 |
12 | oletus | 45 |
13 | vue-composition-test-utils | 38 |
14 | currency-api | 19 |
15 | home-automation-ui | 11 |
16 | pFreak | 5 |
17 | test-runner-compare | 2 |
18 | node-lambda-unit-test | 1 |
19 | tdd-fql-jest | 0 |
Sponsored