UNPKG
vizard
Version:
latest (0.3.1)
0.3.1
0.1.0
0.0.1
An automated visual regression testing framework
vizard
/
src
/
util
/
take-screenshot.js
14 lines
(13 loc)
•
248 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module
.
exports
=
async
function
(
{ screenshotOutputPath, clip, page, }
) {
await
page.
screenshot
({
type
:
'jpeg'
,
quality
:
80
,
path
: screenshotOutputPath, clip,
omitBackground
:
true
, }); };