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

10 lines (9 loc) 421 B
import Dockerode, { Network, NetworkCreateOptions } from "dockerode"; import { NetworkClient } from "./network-client"; export declare class DockerNetworkClient implements NetworkClient { protected readonly dockerode: Dockerode; constructor(dockerode: Dockerode); getById(id: string): Network; create(opts: NetworkCreateOptions): Promise<Network>; remove(network: Dockerode.Network): Promise<void>; }