Skip to content

Commit

Permalink
fix: set the pixel threshold to 0.08
Browse files Browse the repository at this point in the history
  • Loading branch information
Buzzertech committed Jun 22, 2019
1 parent 68b314f commit 781320a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/video.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ import { launchPage, closePage, prepareSvg, generateImage } from '../src/video';
import { puppeteer } from 'chrome-aws-lambda';
import { LaunchOptions } from 'puppeteer';
import fs from 'fs-extra';
import { toMatchImageSnapshot } from 'jest-image-snapshot';
import {
toMatchImageSnapshot,
configureToMatchImageSnapshot,
} from 'jest-image-snapshot';

configureToMatchImageSnapshot({
customDiffConfig: {
threshold: 0.08,
},
});

expect.extend({ toMatchImageSnapshot });

Expand Down

0 comments on commit 781320a

Please sign in to comment.