這樣的好處是測試方法與最終API調用的結果是一樣的,但缺點就是耗時較久,且邊寫 ... toBe(“jest”); }) test(“mock api test2”, async ()=>{ let res ...
確定! 回上一頁