Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Latest commit

 

History

History
11 lines (9 loc) · 773 Bytes

events.md

File metadata and controls

11 lines (9 loc) · 773 Bytes

Gemini events

  • UPDATE_RESULT - emitted always during update. The event is emitted with 1 argument result:

    • result.imagePath - absolute path to the reference image
    • result.updated - boolean value which is true when reference image have been changed and false when not
  • TEST_RESULT - emitted always after the test is completed. The event is emitted with 1 argument result:

    • result.referencePath - absolute path to the reference image
    • result.currentPath - absolute path to the current image on your disk
    • result.equal - boolean value which is true when images are equal and false when aren't
    • result.saveDiffTo - function is responsible for building diff and present in the result only if images aren't equal