Skip to content

Commit

Permalink
chore: add mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
RishikeshNK committed Nov 22, 2024
1 parent 9905d2b commit 1491df5
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion packages/api/tests/review.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
import { describe, expect, test } from "vitest";
import { describe, expect, test, vi } from "vitest";

vi.mock("@cooper/db/client", () => ({
db: {
query: {
Review: {
findMany: vi.fn(),
},
},
},
}));

vi.mock("@cooper/auth", () => ({
auth: vi.fn(),
}));

describe("Review Router", () => {
test("this should pass", () => {
Expand Down

0 comments on commit 1491df5

Please sign in to comment.