profile image

kaitokosugeppp

vitestのmockResolvedValueを利用し、以下のように関数をモックした。
このケースで正しい記述はどちらでしょう!
const helloMock = vi.fn().mockResolvedValue("hello!")