jest.spyOn 接收兩個參數,第一個是模組,第二個是method 的名稱。 現在在 __test__ 資料夾新建一個檔案叫做 spy.js ,將昨日文章 所寫的測試 __test ...
確定! 回上一頁