We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bf1c56 commit 2e757e6Copy full SHA for 2e757e6
course-matrix/backend/__tests__/auth.test.ts
@@ -7,6 +7,17 @@ jest.mock("node-cron", () => ({
7
schedule: jest.fn(), // Mock the `schedule` function
8
}));
9
10
+jest.mock("../src/db/setupDb", () => ({
11
+ supabase: {
12
+ from: jest.fn(() => ({
13
+ select: jest.fn(),
14
+ insert: jest.fn(),
15
+ update: jest.fn(),
16
+ delete: jest.fn(),
17
+ })),
18
+ },
19
+}));
20
+
21
jest.mock("../src/controllers/userController", () => ({
22
signUp: jest.fn((req: Request, res: Response) => {
23
const { email, password, username } = req.body;
0 commit comments