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) 598 B
import Dockerode from "dockerode"; import { Uuid } from "../common"; import { ContainerRuntimeClient } from "../container-runtime"; export declare class Network { private readonly uuid; constructor(uuid?: Uuid); start(): Promise<StartedNetwork>; } export declare class StartedNetwork { private readonly client; private readonly name; private readonly network; constructor(client: ContainerRuntimeClient, name: string, network: Dockerode.Network); getId(): string; getName(): string; stop(): Promise<StoppedNetwork>; } export declare class StoppedNetwork { }