test: the plan-mode re-render guard count includes the Gemini CLI host

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-11-01 00:35:59 +00:00
1 parent 1bbead5567
commit f764cf8fb7
1 file changed
+1 -1
+1 -1
View File
@@ -49,7 +49,7 @@ describe('every installed-skill render carries the plan-mode arg', () => {
test('setup: a build (which renders without the arg) does not skip the host re-renders when the key is off', () => {
const setup = fs.readFileSync(path.join(ROOT, 'setup'), 'utf8');
const guards = setup.split('\n').filter(line => /^if \[ "\$INSTALL_[A-Z]+" -eq 1 \] && .*NEEDS_BUILD/.test(line));
expect(guards.length).toBe(5);
expect(guards.length).toBe(6);
for (const line of guards) expect(line, line).toContain('{ [ "$NEEDS_BUILD" -eq 0 ] || [ -n "$_PLAN_MODE_ARG" ]; }');
});