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