Skip to content

Commit

Permalink
test: increase test snapshot failure to 2%
Browse files Browse the repository at this point in the history
It looks like GitHub Actions CI makes images which are up
to 1.6% different from the test snapshots from my PC,
however these images look pretty much exactly the same.
  • Loading branch information
aloisklink committed Jun 16, 2022
1 parent ec7888b commit 86b695f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async function testScreenshotSnapshot(
// if it's on a local PC, we can just open up the file
dumpInlineDiffToConsole: process.env["CI"],
comparisonMethod: "ssim",
failureThreshold: 0.01,
failureThreshold: 0.02,
failureThresholdType: "percent",
});
}
Expand Down

0 comments on commit 86b695f

Please sign in to comment.