Open micalevisk opened 2 months ago
when we have a testing module like this:
using vi.spyOn(productPriceRepository, 'findOne') throws the following error:
vi.spyOn(productPriceRepository, 'findOne')
While it works if we use a simple vi.fn() like this:
vi.fn()
when we have a testing module like this:
using
vi.spyOn(productPriceRepository, 'findOne')
throws the following error:While it works if we use a simple
vi.fn()
like this: