SponsorBlockServer/test/utils/httpClient.ts

10 lines
287 B
TypeScript
Raw Normal View History

2021-09-22 23:50:06 +02:00
import { config } from "../../src/config";
import axios, { AxiosRequestConfig } from "axios";
2021-09-23 05:34:46 +02:00
const defaultConfig: AxiosRequestConfig = {
baseURL: `http://localhost:${config.port}`,
2021-09-22 23:50:06 +02:00
validateStatus: (status) => status < 500
};
export const client = axios.create(defaultConfig);