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
8 lines (7 loc) • 319 B
TypeScript
export type PortWithBinding = {
container: number;
host: number;
};
export type PortWithOptionalBinding = number | PortWithBinding;
export declare const getContainerPort: (port: PortWithOptionalBinding) => number;
export declare const hasHostBinding: (port: PortWithOptionalBinding) => port is PortWithBinding;