Skip to content

Commit

Permalink
build(happo): decrease compare threshold (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster authored Feb 25, 2021
1 parent f15ff55 commit 0c41229
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/visx-demo/.happo.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@ module.exports = {
// things like getBoundingClientRect + canvas element methods
prerender: false,

// use the demo site styles (else fonts, etc. are 😱)
stylesheets: [path.join(__dirname, '/public/static/doc_styles.css')],

// happo snapshots to include
include: 'happo/*.@(ts|tsx)',

// https://github.com/happo/happo.io/blob/3cba9a0a/README.md#comparethreshold-experimental
compareThreshold: 0.008,

targets: {
'chrome-desktop': new RemoteBrowserTarget('chrome', {
viewport: '800x552',
prefersReducedMotion: true,
prefersReducedMotion: true, // disables flaky tests caused by animation
}),
},

Expand Down

0 comments on commit 0c41229

Please sign in to comment.