fix(test): update 26337 test to match new error message format

The error message format changed from "error occurred while resolving"
to "failed to resolve" - update test to match.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Claude Bot
2026-01-23 23:27:13 +00:00
parent 02daea84e0
commit e13a0687e5

View File

@@ -67,10 +67,11 @@ describe("issue #26337 - missing file: dependency error should show dependency n
failProc.exited,
]);
// The error output should mention the dependency name
// The error output should mention the dependency name and path
const output = stdout + stderr;
expect(output).toContain("@scope/dep");
expect(output).toContain("error occurred while resolving");
expect(output).toContain("file:./nonexistent/path");
expect(output).toContain("failed to resolve");
// The install should fail
expect(exitCode).toBe(1);