Skip to content

Commit

Permalink
Merge pull request #28908 from storybookjs/yann/disable-screenshot-fa…
Browse files Browse the repository at this point in the history
…ilures-by-default

Addon Vitest: Set screenshotFailures to false by default
  • Loading branch information
yannbf authored Aug 16, 2024
2 parents b1b2c6b + ed359c1 commit 88adb31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/addons/vitest/src/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 88adb31

Please sign in to comment.