Jest.fn() does not update global variable

后端 未结 0 707
执笔经年
执笔经年 2021-02-18 23:45

I\'m trying to re-render with updated variable. I can be able to call handleMenuCollapse mock function but \'collapsed\' variable does not change.( It should be

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