mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-10-25 01:15:50 +08:00
Adjust image snapshot threshold for local & CI tests
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
const { configureToMatchImageSnapshot } = require('jest-image-snapshot');
|
||||
|
||||
const toMatchImageSnapshot = configureToMatchImageSnapshot({
|
||||
customDiffConfig: {
|
||||
threshold: 0.1,
|
||||
},
|
||||
customSnapshotIdentifier(data) {
|
||||
return `${data.defaultIdentifier}-${browserName}`;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user