testcontainers
Version:
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
10 lines (9 loc) • 397 B
TypeScript
import Dockerode from "dockerode";
import { BoundPorts } from "../utils/bound-ports";
import { AbstractWaitStrategy } from "./wait-strategy";
export declare class HostPortWaitStrategy extends AbstractWaitStrategy {
waitUntilReady(container: Dockerode.Container, boundPorts: BoundPorts): Promise<void>;
private waitForHostPorts;
private waitForInternalPorts;
private waitForPort;
}