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) • 431 B
TypeScript
import { Dispatcher } from "undici";
/**
* Converts an undici response to a fetch response.
* This is necessary because node's fetch does not support disabling SSL validation (https://github.com/orgs/nodejs/discussions/44038).
*
* @param undiciResponse The undici response to convert.
* @returns The fetch response.
*/
export declare function undiciResponseToFetchResponse(undiciResponse: Dispatcher.ResponseData): Response;