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
11 lines (10 loc) • 460 B
TypeScript
import Dockerode from "dockerode";
import { BoundPorts } from "../utils/bound-ports";
import { AbstractWaitStrategy } from "./wait-strategy";
export type Log = string;
export declare class LogWaitStrategy extends AbstractWaitStrategy {
private readonly message;
private readonly times;
constructor(message: Log | RegExp, times: number);
waitUntilReady(container: Dockerode.Container, boundPorts: BoundPorts, startTime?: Date): Promise<void>;
}