How can I get the value of a React prop in Jest unit tests?

后端 未结 0 516
刺人心
刺人心 2021-01-31 22:12

I have a component like this:

export const TransactionReason = ({
  changeReason,
  reason
}) => {
  const handleNext = () => {
    if (!reason)
    changeR         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题