Skip to content

Commit

Permalink
ci(test): await golden generation (fabricjs#8284)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 authored and frankrousseau committed Jan 6, 2023
1 parent 217bb8b commit ddbd130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib/visualTestLoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@
var stringa = imageDataToChalk(output);
console.log(stringa);
}
if ((!isOK && QUnit.debugVisual) || QUnit.recreateVisualRefs) {
generateGolden(getGoldeName(golden), renderedCanvas);
if (!testObj.testOnly && ((!isOK && QUnit.debugVisual) || QUnit.recreateVisualRefs)) {
await generateGolden(getGoldeName(golden), renderedCanvas);
}
await fabricCanvas.dispose();
done();
Expand Down

0 comments on commit ddbd130

Please sign in to comment.