@podium/test-utils
Version:
Misc common test utils for Podium
12 lines (11 loc) • 339 B
TypeScript
export function request<T>({ pathname, address, headers, method, json, }?: RequestOptions, payload?: T): Promise<{
headers: import("http").IncomingHttpHeaders;
body: T;
}>;
export type RequestOptions = {
pathname?: string;
address?: string;
headers?: Record<string, string>;
method?: string;
json?: boolean;
};