From 18d6873f4a5a864073f139feb8a3d65bd08a9b28 Mon Sep 17 00:00:00 2001 From: Marlen Brunner Date: Wed, 5 Jun 2024 16:43:21 -0700 Subject: [PATCH] :ok_hand: Add missed mock clearing options to vitest. --- api/vite.config.mts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/vite.config.mts b/api/vite.config.mts index 7560eb1f..024adc04 100644 --- a/api/vite.config.mts +++ b/api/vite.config.mts @@ -18,5 +18,11 @@ export default defineConfig({ singleThread: true, }, }, + // Mocking + clearMocks: true, + mockReset: true, + restoreMocks: true, + unstubEnvs: true, + unstubGlobals: true, }, })