Skip to content

Commit 256f6e3

Browse files
committed
mock the db.server file to fix the tests
1 parent e73626d commit 256f6e3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

apps/webapp/test/fairDequeuingStrategy.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
import { redisTest } from "@internal/testcontainers";
21
import { describe, expect, vi } from "vitest";
2+
3+
// Mock the db prisma client
4+
vi.mock("~/db.server", () => ({
5+
prisma: {},
6+
$replica: {},
7+
}));
8+
9+
import { redisTest } from "@internal/testcontainers";
310
import { FairDequeuingStrategy } from "../app/v3/marqs/fairDequeuingStrategy.server.js";
411
import {
512
calculateStandardDeviation,

0 commit comments

Comments
 (0)