@iamkenos/iris
Version:
Test API endpoints with Axios & Jest using a collection of custom matchers and built-in utility functions.
13 lines (10 loc) • 376 B
text/typescript
import type { AxiosRequestConfig, AxiosResponse } from "axios";
export type Spec = { body?: any } & Partial<AxiosRequestConfig>;
export type Response = AxiosResponse<string> & {
/** The time in ms taken to get the response */
time: number;
/** The request object */
request: AxiosResponse["request"];
/** Alias for Axios' data */
body: AxiosResponse["data"];
};