mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
fix(test): update error message assertion for git clone failure (#23119)
## Summary - Updated test assertion to match new error message format for git clone failures ## Details The error message format changed from: ``` error: "git clone" for "uglify" failed ``` To: ``` error: InstallFailed cloning repository for uglify ``` This appears to be due to changes in how 404s work on the bun.sh domain. ## Test plan - [x] Ran `bun bd test test/cli/install/bun-install.test.ts -t "should fail on invalid Git URL"` - passes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -4795,7 +4795,7 @@ it("should fail on invalid Git URL", async () => {
|
||||
env,
|
||||
});
|
||||
const err = await stderr.text();
|
||||
expect(err.split(/\r?\n/)).toContain('error: "git clone" for "uglify" failed');
|
||||
expect(err.split(/\r?\n/)).toContain('error: InstallFailed cloning repository for uglify');
|
||||
const out = await stdout.text();
|
||||
expect(out).toEqual(expect.stringContaining("bun install v1."));
|
||||
expect(await exited).toBe(1);
|
||||
|
||||
Reference in New Issue
Block a user