With this approach snapshots are written to `dist` it could benefit from a `snapshotResolver` in `jest.config.js`