diff options
Diffstat (limited to 'tests/lib/screenshot-testing/support/chai-extras.js')
-rw-r--r-- | tests/lib/screenshot-testing/support/chai-extras.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/screenshot-testing/support/chai-extras.js b/tests/lib/screenshot-testing/support/chai-extras.js index 2160673845..80871f7342 100644 --- a/tests/lib/screenshot-testing/support/chai-extras.js +++ b/tests/lib/screenshot-testing/support/chai-extras.js @@ -92,7 +92,11 @@ module.exports = function makeChaiImageAssert(comparisonCommand = 'compare') { // copy to diff dir for ui tests viewer (we don't generate diffs w/ compare since it slows the tests a bit) if (!fs.existsSync(diffPath)) { - fs.linkSync(expectedPath, diffPath); + try { + fs.linkSync(expectedPath, diffPath); + } catch (e) { + console.log(`Failed to copy ${expectedPath} to ${diffPath}`); + } } } |