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

10 lines (9 loc) 457 B
export type PortWithBinding = { container: number; host: number; protocol?: "tcp" | "udp"; }; export type PortWithOptionalBinding = number | `${number}/${"tcp" | "udp"}` | PortWithBinding; export declare const getContainerPort: (port: PortWithOptionalBinding) => number; export declare const hasHostBinding: (port: PortWithOptionalBinding) => port is PortWithBinding; export declare const getProtocol: (port: PortWithOptionalBinding) => string;