react-otp-input icon indicating copy to clipboard operation
react-otp-input copied to clipboard

Coverage onPaste in unit testing jest react js

Open june26 opened this issue 2 years ago • 0 comments

Steps to reproduce using create react app and jest

issue I'cant coverage testing onPaste props in jest

screenshoot image this is my scenario image

question how to coverage onPaste function? if i try that scenarion, the result is empty (just like the default onPaste) it should be 123 _ _ _ because i remove non numeric value before setState I already tried to console.log inside my function, but not called

june26 avatar Feb 15 '24 07:02 june26