testcontainers/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. observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 96
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 9
- age_days: 3162
- days_rel: 29
- days_push: 10
- n_releases_24m: 52
Adoption not part of the score
2592 stars · 266 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Testcontainers for Node.js is a TypeScript library that spins up lightweight, throwaway Docker containers of real dependencies like databases, message brokers, and web browsers for use in tests. It provides a programmatic API to start and stop containers from test code, replacing mocks and in-memory services with real services.
Use cases
- spin up a throwaway postgres container for integration tests in node
- run tests against real redis instead of mocks
- start selenium browser containers for e2e tests
- bootstrap local dev dependencies with docker from code
- replace in-memory databases with real services in CI
- test database repository code against a real database
When to choose
- you write Node.js integration tests that need real databases, brokers, or browsers
- you want deterministic, isolated test infrastructure without shared state
- you want to avoid mocks and in-memory fakes that diverge from production behavior
When to avoid
- your environment has no Docker available
- you only need fast unit tests with no external dependencies
- you need containers managed outside the test lifecycle
Facets
library · maturity active
testing e2e-testing container-runtime developer-tools testing developer-tools databases cross-platform testcontainers integration-testing docker throwaway-containers test-dependencies containers nodejs
7 sources
- readme: https://github.com/testcontainers/testcontainers-node · fetched 2026-08-28 · ff1d2ecc9907
- homepage: https://testcontainers.com · fetched 2026-08-29 · 9e8ecc1112b8
- site_page: https://testcontainers.com/getting-started · fetched 2026-08-29 · 5d1bff396e32
- site_page: https://testcontainers.com/guides/getting-started-with-testcontainers-for-java · fetched 2026-08-29 · 5ed6e2fb39fd
- site_page: https://testcontainers.com/guides/getting-started-with-testcontainers-for-go · fetched 2026-08-29 · 04b5ff0e4bfc
- site_page: https://testcontainers.com/guides/getting-started-with-testcontainers-for-dotnet · fetched 2026-08-29 · cb0404881f62
- site_page: https://testcontainers.com/guides/getting-started-with-testcontainers-for-nodejs · fetched 2026-08-29 · b5585c2d107d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| testcontainers/testcontainers-node | main | 98 |
For agents
markdown · JSON · MCP: product_card(name="testcontainers/testcontainers-node")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem