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) 333 B
import { ImageBuildOptions } from "dockerode"; import { ImageName } from "../../image-name"; export interface ImageClient { build(context: string, opts: ImageBuildOptions): Promise<void>; pull(imageName: ImageName, opts?: { force: boolean; }): Promise<void>; exists(imageName: ImageName): Promise<boolean>; }