SponsorBlockServer/test/utils/httpClient.ts
2021-09-22 23:34:46 -04:00

9 lines
287 B
TypeScript

import { config } from "../../src/config";
import axios, { AxiosRequestConfig } from "axios";
const defaultConfig: AxiosRequestConfig = {
baseURL: `http://localhost:${config.port}`,
validateStatus: (status) => status < 500
};
export const client = axios.create(defaultConfig);