Test Automation
Testcontainers for Node.js: Integration Testing with Real Services
Testcontainers has a Node.js implementation (testcontainers npm package) that works with Jest, Vitest, and any other test runner. You get the same benefits as the Java version: real Docker containers, automatic lifecycle management, and dynamic port binding. Installation npm install -D testcontainers Copy Requires Docker running on the host