Prior99 / jest-screenshot

A jest extension to deal with screenshots and all sorts of images.
MIT License
71 stars 21 forks source link

How to change snapshotsDir and reportDir outside of the project #14

Open JMDC-SUN opened 5 years ago

JMDC-SUN commented 5 years ago

The Jest-screenshot has a good html reporter, is very useful to me. I like it. How to change snapshot Dir and reportDir to the outside from the project inner?

snapshotsDir string snapshots If specified, will change the directory into which the snapshot images will be stored, relative to the unit test file.
reportDir string jest-screenshot-report If specified, will change the directory into which the HTML report will be written, relative to the project's root directory.
Prior99 commented 5 years ago

Have you tried either specifying an absolute path or using ../../ notation?

If that doesn't work, you could set a symbolic link.

JMDC-SUN commented 5 years ago

Thanks a lot. I try a symbolic link.