diff --git a/code/addons/vitest/src/plugin/index.ts b/code/addons/vitest/src/plugin/index.ts index b607ce551df2..c1fbabb8b626 100644 --- a/code/addons/vitest/src/plugin/index.ts +++ b/code/addons/vitest/src/plugin/index.ts @@ -81,6 +81,10 @@ export const storybookTest = (options?: UserOptions): Plugin => { __STORYBOOK_URL__: storybookUrl, }; + if (config.test.browser) { + config.test.browser.screenshotFailures ??= false; + } + config.resolve ??= {}; config.resolve.conditions ??= []; config.resolve.conditions.push('storybook', 'stories', 'test');