From 44fd585d0b68ea837a5f4c1eec9236cfb1c41478 Mon Sep 17 00:00:00 2001 From: Benoit Quette Date: Fri, 15 Mar 2024 18:23:35 +0100 Subject: [PATCH] add global variables --- vitest-setup.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vitest-setup.js b/vitest-setup.js index bb02c60..3698d47 100644 --- a/vitest-setup.js +++ b/vitest-setup.js @@ -1 +1,7 @@ import '@testing-library/jest-dom/vitest'; +import { beforeAll } from 'vitest'; + +beforeAll(() => { + global.apiProjectsUrl = null; + global.apiUserssUrl = null; +});