cypress-image-snapshot icon indicating copy to clipboard operation
cypress-image-snapshot copied to clipboard

Feature: Custom СachePath

Open Xambey opened this issue 4 years ago • 0 comments

Cache path has static path: root/cypress/.snapshot-report but i've: root/e2e/cypress/...

Previously there was the issue where the path was changed relative to the project root.

I suggest adding customCachePath to the list of options to solve this problem:

line: https://github.com/jaredpalmer/cypress-image-snapshot/blob/0510252bc5f192c410bcca45b511f07737bce4a2/src/plugin.js#L21

export const cachePath = path.join( pkgDir.sync(process.cwd()), 'cypress', '.snapshot-report' );

Xambey avatar Jan 29 '21 12:01 Xambey