From 122c59701a260024367626a8c2f47ed96aa5fd95 Mon Sep 17 00:00:00 2001 From: Cody Kaup Date: Wed, 23 Oct 2024 14:37:43 -0500 Subject: [PATCH] Globally reset mocks between each test --- vitest.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vitest.config.ts b/vitest.config.ts index 46cb0b4f3..93bb3ba32 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -3,6 +3,7 @@ import { configDefaults, coverageConfigDefaults, defineConfig } from 'vitest/con export default defineConfig({ test: { exclude: [...configDefaults.exclude, '**/getParentCommits.test.ts'], + clearMocks: true, // Clear all mocks between each test coverage: { provider: 'v8', exclude: [