Open 67726e opened 2 years ago
Thanks for the report. I will fix it in my spare time.
After consulting the Jest documentation on their usage of rootDir
, it is used to tell the Jest framework where to look for tests in the same way that one would mocha test/**/*.js
so the behavior regarding __snapshot__
directory placement is likely correct.
In looking at what I want(ed) to achieve, I would want to look at the snapshotResolver
property rather than rootDir
which appears to mostly dictate the location from which the library pulls the jest.config.js
file.
https://stackoverflow.com/questions/57682736/how-to-configure-jest-snapshot-locations
As opposed to an actual bug, this "issue" would be better solved via clarified documentation in the README and or some examples.
For the life of me, I cannot get the plugin to respect the
rootDir
configuration. I've tried passing it in via:For whatever reason, the resulting structure looks like:
Whereas, I would prefer it to be something like: