Skip to content

Commit

Permalink
Add threshold to pixelmatch
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Jan 9, 2019
1 parent 0f00d68 commit 1d15eca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion __tests__/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ test('setup', async () => {

const base64PNG = await driver.takeScreenshot();

expect(base64PNG).toMatchImageSnapshot();
expect(base64PNG).toMatchImageSnapshot({
failureThreshold: 10,
failureThresholdType: 'pixel'
});
}, 60000);

0 comments on commit 1d15eca

Please sign in to comment.