Skip to content

Rating feature implementation #232

Rating feature implementation

Rating feature implementation #232

Re-run triggered December 12, 2024 14:12
Status Failure
Total duration 25s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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