Prior99 / jest-screenshot

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

[Feature] Export config module #6

Closed k-g-a closed 5 years ago

k-g-a commented 6 years ago

Good day! First of all, thanks for awesome work! It would be great to add config module to library's exports alongside with setupJestScreenshot and toMatchImageSnapshot. In particular, it would allow to read snapshotsDir, which is crutial for building proper custom path. The change seems simple and I could make a PR if needed.

Prior99 commented 6 years ago

Hi,

I think this can be accomplished quite easily:

In the index.ts the config() function needs to be exported which does exactly that. Also, this needs to be documented.

I'd happily accept a pullrequest.

Prior99 commented 5 years ago

Thanks for your contribution.