sabinelaurent

sabinelaurent/nodejs-testing-best-p...

Beyond the basics of Node.js testing. Including a super-comprehensive best practices list and an example app (April 2025)

JavaScript
0
0
No license

different technically and tricky. The 📗 section 'Message Queues' below delve into this topic **• Observability -** Some things must be monitored, like errors or remarkable business events. When a transaction fails, not only we expect the right response but also correct error handling and proper logging/metrics. This information goes directly to a very important user - The ops user (i.e., production SRE/admin). Testing error handler is not very straightforward - Many types of errors might get thrown, some errors should lead to process crash, and there are many other corners to cover. We plan to write the 📗 section on 'Observability and errors' soon, but the example application already contains examples in the file "createOrder.observabilityCheck.test.ts" ![Component tests](/graphics/exit-doors.png 'Component Tests') <br/><br/> ## **Section 5: Integrations** <br/> ### ⚪️ 1. Test critical integrations with real services 🏷&nbsp; **Tags:** `#intermediate #strategic` :white_check_mark: &nbsp; **Do:** When testing integrations, the goal is to test the entire interaction, not just the request/response. The test should validate the entire communication with the 3rd party service, including things like authentication, retries,

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of sabinelaurent/nodejs-testing-best-practices

Account's avatar
AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native
Account's avatar
Nest - modern, fast, powerful node.js web framework (@common)
Account's avatar
Nest - modern, fast, powerful node.js web framework (@core)
Account's avatar
Nest - modern, fast, powerful node.js web framework (@platform-express)
Account's avatar
Pulumi's Node.js SDK
Account's avatar
A Pulumi package for creating and managing RabbitMQ resources.
Account's avatar
TypeScript definitions for amqplib
Account's avatar
TypeScript definitions for jsonwebtoken
Account's avatar
An AMQP 0-9-1 (e.g., RabbitMQ) library and client.
Account's avatar
Promise based HTTP client for the browser and node.js
Account's avatar
Axios plugin that intercepts failed requests and retries them whenever posible.
Account's avatar
JSON Web Token implementation (symmetric and asymmetric)
Account's avatar
PostgreSQL client - pure javascript & libpq with the same API
Account's avatar
Polyfill for Metadata Reflection API
Account's avatar
Reactive Extensions for modern JavaScript
Account's avatar
Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift and Snowflake’s Data Cloud. It features solid transaction support, relations, eager and lazy loading, read replication and more.
Account's avatar
Generate massive amounts of fake contextual data
Account's avatar
TypeScript definitions for chai
Account's avatar
TypeScript definitions for chai-subset
Account's avatar
TypeScript definitions for express
Account's avatar
TypeScript definitions for jest
Account's avatar
TypeScript definitions for mocha
Account's avatar
Easy and powerful mocking of AWS SDK v3 Clients
Account's avatar
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
Account's avatar
Object properties matcher for Chai
Account's avatar
get colors in your node.js console
Account's avatar
Modern JavaScript date utility library
Account's avatar
Manage docker-compose from Node.js
Account's avatar
Detect if the current environment is a CI server
Account's avatar
Delightful JavaScript Testing.
Account's avatar
A silent reporter for Jest
Account's avatar
Repeat test suite multiple times
Account's avatar
Suspend watch mode
Account's avatar
Jest plugin for filtering by filename or test name
Account's avatar
simple, flexible, fun test framework
Account's avatar
HTTP server mocking and expectations library for Node.js
Account's avatar
Find newer versions of dependencies than what your package.json allows

Top contributors

goldbergyoni's profile
goldbergyoni
1029 contributions
DanielGluskin's profile
DanielGluskin
37 contributions
rluvaton's profile
rluvaton
15 contributions
lirantal's profile
lirantal
3 contributions
wajeht's profile
wajeht
1 contributions
marcobiedermann's profile
marcobiedermann
1 contributions
Pawda's profile
Pawda
1 contributions
mingo023's profile
mingo023
1 contributions
rubengmurray's profile
rubengmurray
1 contributions
SabineLaurent's profile
SabineLaurent
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet