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 • 442 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasHostBinding = exports.getContainerPort = void 0;
const getContainerPort = (port) => typeof port === "number" ? port : port.container;
exports.getContainerPort = getContainerPort;
const hasHostBinding = (port) => {
return typeof port === "object" && port.host !== undefined;
};
exports.hasHostBinding = hasHostBinding;
//# sourceMappingURL=port.js.map
;