Closed meleyal closed 7 years ago
Could this be a bug in fs.outputFile
from fs-extra
? My guess is the file is not touched if it's identical:
log(`Image is within tolerance or the same. Updating base image`);
await fs.outputFile(referencePath, base64Screenshot, 'base64');
Works for me on windows & linux. Travis works also.
Which OS are you using? Maybe it's also an issue with the file system.
OSX 10.11.5 (El Capitan)
I see the following error when running the unit tests:
Comparing the stat calls the files appear identical: