@applitools/visual-grid-cli-utils 1.21.26 → 1.21.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/compare.js +4 -2
package/package.json
CHANGED
package/src/compare.js
CHANGED
|
@@ -18,6 +18,7 @@ async function main(args) {
|
|
|
18
18
|
|
|
19
19
|
async function compareWithEyes(rerenderResults) {
|
|
20
20
|
const eyes = new Eyes()
|
|
21
|
+
let batchUrl
|
|
21
22
|
try {
|
|
22
23
|
// Initialize the eyes configuration
|
|
23
24
|
const configuration = new Configuration()
|
|
@@ -29,7 +30,6 @@ async function compareWithEyes(rerenderResults) {
|
|
|
29
30
|
eyes.setConfiguration(configuration)
|
|
30
31
|
|
|
31
32
|
const uuid = randomUUID()
|
|
32
|
-
let batchUrl
|
|
33
33
|
let i = 0
|
|
34
34
|
for (const result of rerenderResults) {
|
|
35
35
|
await eyes.open('VG-CLI compare', `Compare browsers ${uuid}`)
|
|
@@ -39,9 +39,11 @@ async function compareWithEyes(rerenderResults) {
|
|
|
39
39
|
console.log(`${++i}. ${name} check result: ${resp}`)
|
|
40
40
|
await eyes.close()
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
} catch (err) {
|
|
43
|
+
console.error(err)
|
|
43
44
|
} finally {
|
|
44
45
|
await eyes.abortIfNotClosed()
|
|
46
|
+
console.log('\nBatch results: \n', batchUrl)
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
|