From c785b400e8fb8569ecfaf7040237b1d7285ecba2 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sun, 4 Sep 2022 16:46:05 -0800 Subject: [PATCH] do before --- frontend/lib/api/__test__/test-utils.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); +});