diff --git a/frontend/lib/api/__test__/test-utils.ts b/frontend/lib/api/__test__/test-utils.ts index 601e3d2..d766d76 100644 --- a/frontend/lib/api/__test__/test-utils.ts +++ b/frontend/lib/api/__test__/test-utils.ts @@ -1,4 +1,4 @@ -import { expect } from 'vitest'; +import { beforeAll, expect } from 'vitest'; import { Requests } from '../../requests'; import { OverrideParts } from '../base/urls'; import { PublicApi } from '../public'; @@ -55,3 +55,7 @@ export async function sharedUserClient(): Promise { cache.token = loginData.token; return userClient(data.token); } + +beforeAll(async () => { + await sharedUserClient(); +});