javascript-testing-best-practices
📗🌐 🚢 Comprehensive and exhaustive JavaScript & Node.js testing best practices (April 2024) (by goldbergyoni)
testcontainers-node
Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container. (by testcontainers)
javascript-testing-best-practices | testcontainers-node | |
---|---|---|
16 | 64 | |
24,440 | 2,269 | |
0.0% | 1.4% | |
1.5 | 9.3 | |
about 1 year ago | 1 day ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
javascript-testing-best-practices
Posts with mentions or reviews of javascript-testing-best-practices.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-03.
- Comprehensive and exhaustive JS & Node.js testing best practices (July 2023)
- JavaScript and Node.js testing best practices (July 2023)
-
Awesome Github Repos to Master JAVASCRIPT
😎 You want to take your JS testing skills to the next level, here is a nice repo -> javascript-testing-best-practices
- 10 GitHub repositories you must know as a JavaScript developer
- 10 Must-Know GitHub Repositories for JavaScript Developers
- 10 GitHub Repositories You Should Know as a JavaScript Developer
-
React Testing
Surprised nobody referred this
-
[AskJS] Recommend me a good resource to learn in-depth/advanced about testing (Jest, RTL, Enzyme)
Yoni Golberg's JavaScript Testing best practices guide is always a good resource to consult, for both beginners and experienced developers: https://github.com/goldbergyoni/javascript-testing-best-practices
-
Hyperstack - a new open source Node.js web framework with everything included
I really like how testing is done in Rails. Why did you choose the snapshots approach? I never have seen it for this purpose, they say it's bad practice even for the frontend (check testing practices for node btw), so, why?
-
Good (quick) Resources to Become a Better Developer
JavaScript Testing Best Practices, by Yoni Goldberg is a GitHub repository. It gives good practices about testing.
testcontainers-node
Posts with mentions or reviews of testcontainers-node.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-08-03.
-
I Turned My 2-Year-Old GitHub PR into This Blog Post (Using My Own Tool)
I recently found one of my own forgotten PRs from about two years ago where I added a new module to the testcontainers-node library. (https://github.com/testcontainers/testcontainers-node/pull/646) I wanted to tell the story of that contribution, but I didn't want to spend hours writing it from scratch.
-
Setup PocketBase For Your Integration Tests with TestContainers and xUnit
Fortunately, there is an awesome project for that named TestContainers.
- testcontainers: melhorando testes E2E
-
Integration testing for Go applications using Testcontainers and containerized databases
Testcontainers solves this problem elegantly by providing a way to run lightweight, throwaway instances of databases, message brokers, web servers, and other services directly within your test suite. Instead of complex setup scripts or shared test environments, you can spin up real services in Docker containers that exist only for the duration of your tests. The core value proposition is compelling: write tests that run against the actual technologies your application uses in production, while maintaining the isolation and repeatability that good tests require. When your tests complete, the containers are automatically cleaned up, leaving no trace behind.
-
Integration Testing .NET Web API Using Testcontainers
This article covers how to use Docker for integration testing in an ASP.NET Core Web API project. We'll use the Testcontainers library to spin up SQL Server containers for our integration tests.
-
Wiremock + testcontainers + Algolia + Go = ❤️
A great alternative is testcontainers + testcontainers Cloud. Testcontainers is a library available in many languages that allows you to start and stop Docker containers during your tests, making it possible to get good isolation between tests. Testcontainers Cloud is a service that allows you to run said containers on a remote infrastructure, as opposed to running them on your own infrastructure, which, if you want to use Kubernetes runners for Gitlab, implies using Docker in Docker, which is not great from the security standpoint. Locally, you would still use a local docker container, but in the CI, tescontainers will send requests to testcontainers cloud, to start and stop containers. Enough unpaid endorsement, let's get to the code.
-
Test Postgres in Python Like SQLite
There’s also https://testcontainers.com/ not sure about the speed difference but testcontainers has never felt slow to me when using it from node js unittests.
- Como usar o husky garantir a qualidade do seu código
-
Testing MongoDB Atlas Search Java Apps Using TestContainers
Even though we’re going to be using the Java TestContainers project here, TestContainers is available for lots of languages and platforms. You can check it out on their website.
-
Spring Boot AI Evaluation Testing
Start Docker Compose with both Ollama and PGVector using Testcontainers
What are some alternatives?
When comparing javascript-testing-best-practices and testcontainers-node you can also consider the following projects:
nodebestpractices - :white_check_mark: The Node.js best practices list (July 2024)
Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
svelte-jester - A Jest transformer for Svelte - compile your components before importing them into tests.
pglite - Embeddable Postgres with real-time, reactive bindings.
front-end-interview-handbook - 🌐 Front End interview preparation materials for busy engineers (updated for 2025)
power-assert - Power Assert in JavaScript. Provides descriptive assertion messages through standard assert interface. No API is the best API.