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

12 lines (11 loc) 451 B
import { ImageBuildOptions, ImageInspectInfo } from "dockerode"; import { ImageName } from "../../image-name"; export interface ImageClient { build(context: string, opts: ImageBuildOptions): Promise<void>; pull(imageName: ImageName, opts?: { force: boolean; platform: string | undefined; }): Promise<void>; inspect(imageName: ImageName): Promise<ImageInspectInfo>; exists(imageName: ImageName): Promise<boolean>; }