From f54a2247fc8b6f66df0381975a8fa8e54da5a615 Mon Sep 17 00:00:00 2001 From: patrikbraborec Date: Mon, 29 Jun 2026 13:34:52 +0200 Subject: [PATCH] fix(call): drop incorrect schema-hint assertion on --input file-path error The --input file-path error ("use --input-file instead") is a usage error, not a schema problem, so the schema-discovery hint intentionally does not apply there. The test added in #1212 wrongly asserted the hint was present, failing on CI. Update the test to assert the hint is absent for this case. Closes #1234 Co-Authored-By: Claude Opus 4.8 (1M context) --- test/local/lib/resolve-input.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/local/lib/resolve-input.test.ts b/test/local/lib/resolve-input.test.ts index b8d28471c..0213865f4 100644 --- a/test/local/lib/resolve-input.test.ts +++ b/test/local/lib/resolve-input.test.ts @@ -15,14 +15,14 @@ describe('getInputOverride', () => { process.exitCode = undefined; }); - it('appends schema hint to --input file path errors when provided', async () => { + it('does not append schema hint to --input file path errors', async () => { const result = await getInputOverride(process.cwd(), './input.json', undefined, { schemaHint: SCHEMA_HINT }); expect(result).toBe(false); expect(process.exitCode).toBe(CommandExitCodes.InvalidInput); const stderr = logMessages.error.join('\n'); expect(stderr).toContain('Use the "--input-file=" flag instead'); - expect(stderr).toContain(SCHEMA_HINT); + expect(stderr).not.toContain(SCHEMA_HINT); }); it('keeps --input file path errors unchanged when schema hint is omitted', async () => {