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
17 lines (16 loc) • 671 B
TypeScript
import { ContainerRuntimeClient } from "../container-runtime";
/**
* Resolve the Ryuk reaper image name. Read lazily so that callers (and tests)
* can set `process.env.RYUK_CONTAINER_IMAGE` _after_ this module is imported —
* including via `.env` files loaded by `dotenv` at runtime.
*
* See https://github.com/testcontainers/testcontainers-node/issues/1310.
*/
export declare function getReaperImage(): string;
export interface Reaper {
sessionId: string;
containerId: string;
addSession(sessionId: string): void;
addComposeProject(projectName: string): void;
}
export declare function getReaper(client: ContainerRuntimeClient): Promise<Reaper>;