Skip to content

Commit 415c8cf

Browse files
chore: update tests to include ConfigurationHandler in personal-agent setup
1 parent d6dcae4 commit 415c8cf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tests/personal-agent.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { GitHubEventHandler } from "../src/github/github-event-handler";
66
import { logger } from "../src/logger/logger";
77
import { db } from "./__mocks__/db";
88
import { server } from "./__mocks__/node";
9+
import { createConfigurationHandler } from "./test-utils/configuration-handler";
910

1011
const createWorkflowDispatch = jest.fn(() => ({}));
1112
const commentCreateEvent = "issue_comment.created";
@@ -115,5 +116,6 @@ function createContextInner(commentBody: string): GitHubContext<"issue_comment.c
115116
} as unknown as GitHubEventHandler,
116117
openAi: {} as unknown as GitHubContext<"issue_comment.created">["openAi"],
117118
llm: "",
119+
configurationHandler: createConfigurationHandler() as unknown as GitHubContext<"issue_comment.created">["configurationHandler"],
118120
};
119121
}

0 commit comments

Comments
 (0)