UNPKG

@iamkenos/iris

Version:

Test API endpoints with Axios & Jest using a collection of custom matchers and built-in utility functions.

13 lines (12 loc) 391 B
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"]; };