Is String.prototype.replaceAll available when running a jest test for a React Component?

前端 未结 0 1674
情话喂你
情话喂你 2021-01-15 23:18

I\'m getting the following error when I run jest test on my React package.

TypeError: this.props.question.replaceAll is not a function

const questionId = thi         


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