Skip to content

Commit d098e8c

Browse files
test(grok): fix remaining doctor probe count and skills-installer mock exports
Co-Authored-By: First Fluke <our.first.fluke@gmail.com>
1 parent 23b3dac commit d098e8c

2 files changed

Lines changed: 25 additions & 6 deletions

File tree

cli/commands/doctor/doctor.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,16 @@ describe("checkCLI via collectDoctorReport", () => {
125125
it("quick-exit with code 0 returns installed: true with trimmed version", async () => {
126126
const reportPromise = collectDoctorReport();
127127

128-
// Let the Promise constructors run so spawn() is called for all 4 CLIs
128+
// Let the Promise constructors run so spawn() is called for all CLIs
129129
await vi.advanceTimersByTimeAsync(0);
130-
expect(spawnState.lastProcs).toHaveLength(5);
130+
expect(spawnState.lastProcs).toHaveLength(6);
131131

132132
settleProcs(0, "1.2.3\n");
133133
await vi.advanceTimersByTimeAsync(0);
134134

135135
const report = await reportPromise;
136136

137-
expect(report.clis).toHaveLength(5);
137+
expect(report.clis).toHaveLength(6);
138138
for (const cli of report.clis) {
139139
expect(cli.installed).toBe(true);
140140
expect(cli.version).toBe("1.2.3");
@@ -145,7 +145,7 @@ describe("checkCLI via collectDoctorReport", () => {
145145
const reportPromise = collectDoctorReport();
146146

147147
await vi.advanceTimersByTimeAsync(0);
148-
expect(spawnState.lastProcs).toHaveLength(5);
148+
expect(spawnState.lastProcs).toHaveLength(6);
149149

150150
settleProcs(1);
151151
await vi.advanceTimersByTimeAsync(0);
@@ -161,7 +161,7 @@ describe("checkCLI via collectDoctorReport", () => {
161161
const reportPromise = collectDoctorReport();
162162

163163
await vi.advanceTimersByTimeAsync(0);
164-
expect(spawnState.lastProcs).toHaveLength(5);
164+
expect(spawnState.lastProcs).toHaveLength(6);
165165

166166
errorProcs();
167167
await vi.advanceTimersByTimeAsync(0);
@@ -178,7 +178,7 @@ describe("checkCLI via collectDoctorReport", () => {
178178
const reportPromise = collectDoctorReport();
179179

180180
await vi.advanceTimersByTimeAsync(0);
181-
expect(spawnState.lastProcs).toHaveLength(5);
181+
expect(spawnState.lastProcs).toHaveLength(6);
182182

183183
// Advance past the 1500ms probe timeout + 200ms SIGKILL grace
184184
await vi.advanceTimersByTimeAsync(1700);

cli/commands/update/update-global.test.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,25 @@ const skillsState = vi.hoisted(() => ({
104104
"hermes",
105105
"qwen",
106106
],
107+
CLI_SKILLS_DIR: {
108+
antigravity: {
109+
projectPath: ".gemini/antigravity-cli/skills",
110+
homePath: ".gemini/antigravity-cli/skills",
111+
requiresHomeConsent: true,
112+
},
113+
claude: { projectPath: ".claude/skills", homePath: ".claude/skills" },
114+
codex: { projectPath: ".codex/skills", homePath: ".codex/skills" },
115+
copilot: { projectPath: ".github/skills", homePath: ".copilot/skills" },
116+
cursor: { projectPath: ".cursor/skills", homePath: ".cursor/skills" },
117+
gemini: { projectPath: ".gemini/skills", homePath: ".gemini/skills" },
118+
grok: { projectPath: ".grok/skills", homePath: ".grok/skills" },
119+
hermes: {
120+
projectPath: ".hermes/skills/oma",
121+
homePath: ".hermes/skills/oma",
122+
requiresHomeConsent: true,
123+
},
124+
qwen: { projectPath: ".qwen/skills", homePath: ".qwen/skills" },
125+
},
107126
}));
108127

109128
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)