Skip to content

Commit

Permalink
Image snapshots: raise threshold, skip too flaky stories
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed Jan 21, 2018
1 parent 3116a1d commit 85f1f7f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ if (!fs.existsSync(pathToStorybookStatic)) {
suite: 'Image snapshots',
framework: 'react',
configPath: path.join(__dirname, '..'),
storyNameRegex: /^((?!tweaks static values with debounce delay|Inlines component inside story).)$/,
test: imageSnapshot({
storybookUrl: `file://${pathToStorybookStatic}`,
getMatchOptions: () => ({
failureThreshold: 0.01, // 1% threshold,
failureThreshold: 0.04, // 4% threshold,
failureThresholdType: 'percent',
}),
}),
Expand Down

0 comments on commit 85f1f7f

Please sign in to comment.