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
26 lines (25 loc) • 643 B
TypeScript
export type Environment = {
[key in string]: string;
};
export type ExecOptions = {
workingDir: string;
user: string;
env: Environment;
log: boolean;
};
export type ExecResult = {
output: string;
stdout: string;
stderr: string;
exitCode: number;
};
export type ContainerCommitOptions = {
repo: string;
tag: string;
comment?: string;
author?: string;
pause?: boolean;
changes?: string;
};
export declare const CONTAINER_STATUSES: readonly ["created", "restarting", "running", "removing", "paused", "exited", "dead"];
export type ContainerStatus = (typeof CONTAINER_STATUSES)[number];