Skip to content

Commit

Permalink
test(screeshot-testing): add a little bit of blur to fix font rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
thatkookooguy committed Dec 25, 2019
1 parent 3af3518 commit ed440b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/image-maker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ describe('image maker', () => {
// writeFile('na.png', pngBuffer);

(expect(pngBuffer) as any).toMatchImageSnapshot({
customDiffConfig: customConfig
customDiffConfig: customConfig,
blur: 1
});
});

Expand Down Expand Up @@ -128,7 +129,8 @@ describe('image maker', () => {
// await writeFile('nice.svg', pngBuffer);

(expect(pngBuffer) as any).toMatchImageSnapshot({
customDiffConfig: customConfig
customDiffConfig: customConfig,
blur: 1
});
});
});

0 comments on commit ed440b8

Please sign in to comment.