snapshot-diff
snapshot-diff copied to clipboard
Consider calling rendering with current jest.config
Currently, the configured jest.config isn't considered when creating snapshots. Therefore, e.g. styled-component serializer is ignored, if configured. Issue #30 is similar, but doesn't consider existing configurations.
Sounds reasonable. Would you like implementing this change? We could leverage jest-config
for that. This would require adding it as a dependency or a peer dependency.
cc @SimenB
maybe we could somehow pass in the config so you could delegate to other serializers first, then do your diff?
@siebigteroth FYI, we just released v0.6.0 with setSerializers
API, which can unblock you: https://github.com/jest-community/snapshot-diff#custom-serializers