Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JMDC-SUN opened this issue Jul 9, 2019 · 2 comments
Open

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

JMDC-SUN opened this issue Jul 9, 2019 · 2 comments

Comments

@JMDC-SUN
Copy link

JMDC-SUN commented Jul 9, 2019

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
Copy link
Owner

Prior99 commented Jul 9, 2019

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

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

@JMDC-SUN
Copy link
Author

Thanks a lot. I try a symbolic link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants