O seguinte teste unitário está dando um erro:
it('should throw and error if an invalid review data is provided, preventing the review from being saved', async () => {
		productReviewValidatorStub.validate.mockImplementationOnce(() => { throw new Error() })
		productRepositoryStub.findOneProductById.mockReturnValueOnce(Promise.resolve(ProductStubFactory.create()))
		userRepositoryStub.findOneUserById.mockReturnValueOnce(Promise.resolve(UserStubFactory.create()))
		const saveProductReviewMethodFromProductRepository = jest.spyOn(productRepositoryStub, "saveProductReview")
		const sut = sutFactory()
		await expect(sut.execute(
			//valid product id
			"existing_product_id",
			{
				//invalid review data
				rating: -1,
				text: "invalid_text"
			},
			//valid product id
			"existing_user_id"
		)).rejects.toThrow()
		expect(saveProductReviewMethodFromProductRepository).not.toHaveBeenCalled();
	});

o erro que dá é esse:
Add product review use case unit testing › should throw and error if an nonexisting user id is provided
                                                                                                                                                                                                                                                                                                                            
    expect(jest.fn()).not.toHaveBeenCalled()                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                            
    Expected number of calls: 0                                                                                                                                                                                                                                                                                             
    Received number of calls: 1                                                                                                                                                                                                                                  