Skip to content

Prioritize fixture props > HoC props

Compare
Choose a tag to compare
@jozsi jozsi released this 12 Jun 19:42
· 8 commits to master since this release

When using a HoC, it will append some props to the component. Previously, the HoC props were overwriting the ones declared in the fixture, this prevented us to mock some props sent by the HoC (e.g. isSubmitting).

This has been fixed, props declared in the fixture will override the ones passed from the HoC - if they conflict on merge.