import fetch from 'node-fetch';
import {
LoginForm,
LoginResponse,
PostForm,
PostResponse,
SearchResponse,
FollowCommunityForm,
CommunityResponse,
GetFollowedCommunitiesResponse,
GetPostForm,
GetPostResponse,
CommentForm,
CommentResponse,
CommunityForm,
GetCommunityForm,
GetCommunityResponse,
CommentLikeForm,
CreatePostLikeForm,
PrivateMessageForm,
EditPrivateMessageForm,
PrivateMessageResponse,
PrivateMessagesResponse,
GetUserMentionsResponse,
} from '../interfaces';
let lemmyAlphaUrl = 'http://localhost:8540';
let lemmyAlphaApiUrl = `${lemmyAlphaUrl}/api/v1`;
let lemmyAlphaAuth: string;
let lemmyBetaUrl = 'http://localhost:8550';
let lemmyBetaApiUrl = `${lemmyBetaUrl}/api/v1`;
let lemmyBetaAuth: string;
let lemmyGammaUrl = 'http://localhost:8560';
let lemmyGammaApiUrl = `${lemmyGammaUrl}/api/v1`;
let lemmyGammaAuth: string;
// Workaround for tests being run before beforeAll() is finished
// https://github.com