Skip to content

Commit fa25019

Browse files
test: align workspace ai default expectation
1 parent d336a29 commit fa25019

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

packages/core/src/workspace/workspace.test.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,29 @@ describe("Workspace.init", () => {
3131
expect(config.projectId).toMatch(/^[0-9a-f-]{36}$/);
3232
expect(config.ignore).toContain(".git/**");
3333
expect(config.sessionIdleGapMinutes).toBe(30);
34+
expect(config.ai).toBeNull();
35+
expect(config.agentIngest).toEqual({ enabled: false, providers: [] });
36+
});
37+
38+
it("can initialize with explicit AI config", () => {
39+
const ws = new Workspace(projectRoot);
40+
const config = ws.init("demo", {
41+
ai: {
42+
provider: "minimax",
43+
model: "MiniMax-M2.7",
44+
apiKeyEnv: "MINIMAX_API_KEY",
45+
baseUrl: "https://api.minimax.io/v1",
46+
authMode: "api-key",
47+
},
48+
});
49+
3450
expect(config.ai).toEqual({
3551
provider: "minimax",
3652
model: "MiniMax-M2.7",
3753
apiKeyEnv: "MINIMAX_API_KEY",
3854
baseUrl: "https://api.minimax.io/v1",
3955
authMode: "api-key",
4056
});
41-
expect(config.agentIngest).toEqual({ enabled: false, providers: [] });
4257
});
4358

4459
it("can initialize with AI disabled", () => {

0 commit comments

Comments
 (0)