diff --git a/tests/lib/rules/prop-types.js b/tests/lib/rules/prop-types.js index c8fa145216..0babd91930 100644 --- a/tests/lib/rules/prop-types.js +++ b/tests/lib/rules/prop-types.js @@ -4414,6 +4414,34 @@ ruleTester.run('prop-types', rule, { errors: [{ message: '\'a\' is missing in props validation' }] + }, + { + code: ` + class Foo extends React.Component { + contructor(props) { + super(props); + this.initialValues = { + test: '', + }; + } + + render = () => { + return ( + + {formikProps => ( + + )} + + ); + } + } + `, + parser: 'babel-eslint', + errors: [{ + message: '\'initialValues\' is missing in props validation' + }] } ] });