vi.spyOn
from
VitestでMock
docs
Test Spy
mock/spy的側面も、stub的側面も備えている
spyOn
って名前だけど、stubとしても使える
なので紛らわしい