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
15 lines (14 loc) • 818 B
TypeScript
import { ComposeDownOptions, ComposeOptions } from "../container-runtime";
import { StartedGenericContainer } from "../generic-container/started-generic-container";
import { DownedDockerComposeEnvironment } from "./downed-docker-compose-environment";
import { StoppedDockerComposeEnvironment } from "./stopped-docker-compose-environment";
export declare class StartedDockerComposeEnvironment {
private readonly startedGenericContainers;
private readonly options;
constructor(startedGenericContainers: {
[containerName: string]: StartedGenericContainer;
}, options: ComposeOptions);
stop(): Promise<StoppedDockerComposeEnvironment>;
down(options?: Partial<ComposeDownOptions>): Promise<DownedDockerComposeEnvironment>;
getContainer(containerName: string): StartedGenericContainer;
}