mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user