refactor(api): ♻️ Refactor all tests to use new client

This commit is contained in:
Jesse Wierzbinski 2025-03-22 17:32:46 +01:00
parent b6373dc185
commit 54e282b03c
No known key found for this signature in database
31 changed files with 1607 additions and 2002 deletions

View file

@ -38,6 +38,7 @@ export const generateClient = async (
): Promise<
VersiaClient & {
[Symbol.asyncDispose](): Promise<void>;
dbToken: Token;
}
> => {
const token = user
@ -69,8 +70,12 @@ export const generateClient = async (
await token?.delete();
};
// @ts-expect-error More monkeypatching
client.dbToken = token;
return client as VersiaClient & {
[Symbol.asyncDispose](): Promise<void>;
dbToken: Token;
};
};
export const deleteOldTestUsers = async (): Promise<void> => {