cypress-match-screenshot
Advanced tools
Comparing version 0.0.1-rc.0 to 0.0.1-rc.1
{ | ||
"name": "cypress-match-screenshot", | ||
"version": "0.0.1-rc.0", | ||
"version": "0.0.1-rc.1", | ||
"description": "Utility to take screenshots during a cypress test and match them against previous runs", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -0,1 +1,7 @@ | ||
function uuid () { | ||
return ([ 1e7 ] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, (a) => | ||
(a ^ ((Math.random() * 16) >> (a / 4))).toString(16) | ||
); | ||
} | ||
function matchScreenshot (name, options = {}) { | ||
@@ -2,0 +8,0 @@ const fileName = `${this.test.parent.title} -- ${this.test.title} -- ${name}`; |
28554
66