UNPKG

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

20 lines (19 loc) 705 B
import Dockerode from "dockerode"; import { ContainerRuntimeClient } from "../../container-runtime"; export interface PortCheck { isBound(port: number): Promise<boolean>; } export declare class HostPortCheck implements PortCheck { private readonly client; constructor(client: ContainerRuntimeClient); isBound(port: number): Promise<boolean>; } export declare class InternalPortCheck implements PortCheck { private readonly client; private readonly container; private isDistroless; private readonly commandOutputs; constructor(client: ContainerRuntimeClient, container: Dockerode.Container); isBound(port: number): Promise<boolean>; private commandOutputsKey; }