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 5b7c729 commit 3851ffdCopy full SHA for 3851ffd
apps/webapp/test/engine/triggerTask.test.ts
@@ -5,9 +5,13 @@ vi.mock("~/db.server", () => ({
5
prisma: {},
6
}));
7
8
-vi.mock("~/services/platform.v3.server", () => ({
9
- getEntitlement: vi.fn(),
10
-}));
+vi.mock("~/services/platform.v3.server", async (importOriginal) => {
+ const actual = (await importOriginal()) as Record<string, unknown>;
+ return {
11
+ ...actual,
12
+ getEntitlement: vi.fn(),
13
+ };
14
+});
15
16
import { RunEngine } from "@internal/run-engine";
17
import { setupAuthenticatedEnvironment, setupBackgroundWorker } from "@internal/run-engine/tests";
0 commit comments