Skip to content

Commit 40e4077

Browse files
committed
fix: mock env in dispatch
1 parent b1d219c commit 40e4077

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/lib/dispatch.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ import { describe, it, expect, vi, beforeEach } from "vitest";
22
import type { Adapters } from "./adapters.js";
33
import type { TicketContent } from "../adapters/issue-tracker/types.js";
44

5+
vi.mock("../../env.js", () => ({
6+
env: {
7+
JIRA_PROJECT_KEY: "PROJ",
8+
COLUMN_AI: "AI",
9+
},
10+
}));
11+
512
const mockStart = vi.fn();
613
const mockGetRun = vi.fn();
714
vi.mock("workflow/api", () => ({

src/lib/reconcile.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import { describe, it, expect, vi, beforeEach } from "vitest";
22
import type { RunRegistryAdapter } from "../adapters/run-registry/types.js";
33

4+
vi.mock("../../env.js", () => ({
5+
env: {
6+
JIRA_PROJECT_KEY: "PROJ",
7+
COLUMN_AI: "AI",
8+
},
9+
}));
10+
411
const mockGetRun = vi.fn();
512
vi.mock("workflow/api", () => ({
613
getRun: (...args: any[]) => mockGetRun(...args),

0 commit comments

Comments
 (0)