How to fire and test a real paste event (not simulated by calling the prop) in Jest and Enzyme

后端 未结 0 1520
猫巷女王i
猫巷女王i 2021-01-25 08:26

I\'m trying to unit test a very simple feature in a React app where I\'m blocking the user from pasting into a textarea by adding an event.preventDefault() in the e

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