Using [jest snapshots](https://facebook.github.io/jest/docs/api.html#tomatchsnapshot) and [mock-fs](https://github.com/tschaub/mock-fs) it should be pretty straightforward.