'EXDEV: cross-device link not permitted' error in docker
Opened this issue · 0 comments
serjGavaleshko commented
Hi!
There is issue when run tests in docker:
fs.renameSync(); (480 line) throws an exception:
Error: EXDEV: cross-device link not permitted, rename '/codecept/output/~60mi4.temp' -> '/codecept/tests/output/debug.png' at Object.renameSync (node:fs:993:3) at PixelmatchHelper._takeScreenshot (node_modules/codeceptjs-pixelmatchhelper/index.js:479:6) at async PixelmatchHelper._maybeCaptureImage (node_modules/codeceptjs-pixelmatchhelper/index.js:639:3) at async PixelmatchHelper.getVisualDifferences (node_modules/codeceptjs-pixelmatchhelper/index.js:280:3) at async /codecept/node_modules/codeceptjs-pixelmatchhelper/index.js:241:5
It could be fixed by changing method to fs.copyFileSync();