Jest mockreturnvalue is not a function ... mock() are hoisted to the top of the file, it's not possible to first Jest needs to return a function when you ask for ...
確定! 回上一頁