From d33b9c35f4ea7f6ff009254a1b75324065e30bf2 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Wed, 28 Jan 2026 14:20:04 +0100 Subject: [PATCH] Addon-Vitest: Update Vitest plugin configuration to disable requireAssertions for expect --- code/addons/vitest/src/vitest-plugin/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/code/addons/vitest/src/vitest-plugin/index.ts b/code/addons/vitest/src/vitest-plugin/index.ts index 9dc01100b2bd..b07edb2bfd00 100644 --- a/code/addons/vitest/src/vitest-plugin/index.ts +++ b/code/addons/vitest/src/vitest-plugin/index.ts @@ -297,6 +297,7 @@ export const storybookTest = async (options?: UserOptions): Promise => const baseConfig: Omit = { cacheDir: resolvePathInStorybookCache('sb-vitest', projectId), test: { + expect: { requireAssertions: false }, setupFiles: [ fileURLToPath(import.meta.resolve('@storybook/addon-vitest/internal/setup-file')), // if the existing setupFiles is a string, we have to include it otherwise we're overwriting it