-
UPDATE_RESULT
- emitted always during update. The event is emitted with 1 argumentresult
:result.imagePath
- absolute path to the reference imageresult.updated
- boolean value which istrue
when reference image have been changed andfalse
when not
-
TEST_RESULT
- emitted always after the test is completed. The event is emitted with 1 argumentresult
:result.referencePath
- absolute path to the reference imageresult.currentPath
- absolute path to the current image on your diskresult.equal
- boolean value which istrue
when images are equal andfalse
when aren'tresult.saveDiffTo
- function is responsible for building diff and present in theresult
only if images aren't equal
-
INTERRUPT
- emitted on signal eventsSIGHUP
,SIGINT
orSIGTERM
. The event is emitted with 1 argumentdata
:data.exitCode
- exit code with which gemini will be interrupted
-
START_BROWSER
- emitted on browser session start. Emitted with browser instance. If handler returns a promise tests will be executed in this session only after the promise is resolved. -
STOP_BROWSER
- emitted right before browser session end. Emitted with browser instance. If handler returns a promise quit will be performed only after the promise is resolved.