Skip to content

Commit 7acb808

Browse files
committed
fix: don't report on screenshot VRT results if none have failed
1 parent e81ed6c commit 7acb808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/report-jest-screenshots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class JestScreenshotReporter {
7979
}
8080

8181
onRunComplete(contexts, results) {
82-
if (NOW_TOKEN) {
82+
if (NOW_TOKEN && this.allImagePromises.length > 0) {
8383
return Promise.all(this.allImagePromises)
8484
.then(function(values) {
8585
console.log(

0 commit comments

Comments
 (0)