|
var proc = child_process.spawnSync("gauge_screenshot", [tmpfile]); |
JS runner uses gauge_screenshot plugin to take screenshot on failure or when custom screenshot API is used. Which writes the screenshot data into provided temp file and GaugeJS reads that file and sends the screenshot data back to Gauge but does not remove the temp file.
Leaving those temp files around will be an issue for a large project with a lot of screenshots.