test: Update prompt-file error message assertions to match UX improvements

Tests expected old error wording after PR #387 changed the messages.

Agent: team-lead
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
A 2026-02-11 09:26:47 +00:00
parent a5f40391a7
commit 387a231a78
2 changed files with 3 additions and 3 deletions

View file

@ -305,7 +305,7 @@ describe("--prompt-file with real files", () => {
"/tmp/spawn-nonexistent-test-file-12345.txt",
]);
const out = output(result);
expect(out).toContain("Error reading prompt file");
expect(out).toContain("Prompt file not found");
expect(result.exitCode).not.toBe(0);
});
@ -328,7 +328,7 @@ describe("--prompt-file with real files", () => {
"/tmp/spawn-missing-file.txt",
]);
const out = output(result);
expect(out).toContain("Make sure the file exists");
expect(out).toContain("Check the path and try again");
expect(result.exitCode).not.toBe(0);
});
});

View file

@ -261,7 +261,7 @@ describe("extractFlagValue in actual CLI", () => {
it("should error when prompt file does not exist", () => {
const result = runCli(["claude", "sprite", "--prompt-file", "/tmp/nonexistent-spawn-test-file.txt"]);
const output = result.stderr + result.stdout;
expect(output).toContain("Error reading prompt file");
expect(output).toContain("Prompt file not found");
expect(result.exitCode).not.toBe(0);
});
});