0
、およびこのエラーを回避するための最善の選択肢である
Error: FormSection must be inside a component decorated with reduxForm()
ユニットテストFormSection部品
何次のエラーを取得しますか?
、およびこのエラーを回避するための最善の選択肢である
Error: FormSection must be inside a component decorated with reduxForm()
ユニットテストFormSection部品
何次のエラーを取得しますか?
私は次のようにコンテキストでreduxForm
をあざけることによって、このエラーを回避することができました:
shallow(<MyComponent {...props} />, { context:{ _reduxForm: {}}});