Skip to content

Commit

Permalink
refactor: retry thrice
Browse files Browse the repository at this point in the history
  • Loading branch information
Buzzertech committed Jun 22, 2019
1 parent 7ab2ad5 commit 68b314f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file added test/__image_snapshots__/sandstorm-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion test/video.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ describe('video', () => {
it('generate a png image', async () => {
await generateImage('/tmp/out.png', svgStr);
const image = await fs.readFile('/tmp/out.png');
expect(image).toMatchImageSnapshot();
jest.retryTimes(3);
expect(image).toMatchImageSnapshot({
customSnapshotIdentifier: 'sandstorm',
});
});
});

Expand Down

0 comments on commit 68b314f

Please sign in to comment.