Rating feature implementation #232
Annotations
2 errors and 1 warning
TypeError: vi.mock is not a function. (In 'vi.mock("../src/services/ratingModel":
tests/ratingModel.test.ts#L4
create: vi.fn().mockResolvedValue({ restaurant: "Mock Restaurant", rating: 5, comment: "Mock Comment" }),
getRatingsByRestaurant: vi.fn().mockResolvedValue([{ restaurant: "Mock Restaurant", rating: 5 }]),
getAverageRating: vi.fn().mockResolvedValue(4.5)
}
}))', 'vi.mock' is undefined)
at /home/runner/work/cmueats/cmueats/tests/ratingModel.test.ts:4:4
|
test
Process completed with exit code 1.
|
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|