3.8.0
- Intentionally passing
undefinedtotoHaveStateandtoHavePropsnow compares on the undefined value. (@DianaSuvorova)
Example:
expect(wrapper).toHaveState('key', undefined);undefined to toHaveState and toHaveProps now compares on the undefined value. (@DianaSuvorova)Example:
expect(wrapper).toHaveState('key', undefined);