how to test if a function has been called that isn't passed as props from another component?

前端 未结 0 1281
挽巷
挽巷 2020-11-27 10:43

How do i test if a function that isn\'t being passed as props has been called with jest/RTL?

function CreateForm() {

  const submitHandler = () => {
    /         


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