Skip to content

Commit

Permalink
reduce diff pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuyui committed May 20, 2023
1 parent 26bf740 commit 9e5ce7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/storybook/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ export default defineConfig({

toHaveScreenshot: {
// An acceptable amount of pixels that could be different, unset by default.
maxDiffPixels: 10,
maxDiffPixels: 2,
},

toMatchSnapshot: {
// An acceptable ratio of pixels that are different to the total amount of pixels, between 0 and 1.
maxDiffPixelRatio: 0.1,
maxDiffPixelRatio: 0.025,
},
},

Expand Down

0 comments on commit 9e5ce7a

Please sign in to comment.