From 5a19f8434bc1f1e1eb3cb7c79f15638b8cbcd64f Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 7 Feb 2023 08:24:34 +0200 Subject: [WIP] fix corner cases with aliases dependencies (#2000) * fix corner cases with aliases dependencies * in-memory convert legacy `bun.lockb` --- test/bun.js/install/bun-add.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/bun.js/install/bun-add.test.ts') diff --git a/test/bun.js/install/bun-add.test.ts b/test/bun.js/install/bun-add.test.ts index 5be122bd0..7231943f8 100644 --- a/test/bun.js/install/bun-add.test.ts +++ b/test/bun.js/install/bun-add.test.ts @@ -62,8 +62,8 @@ it("should add existing package", async () => { expect(stdout).toBeDefined(); const out = await new Response(stdout).text(); expect(out.replace(/\s*\[[0-9\.]+m?s\]\s*$/, "").split(/\r?\n/)).toEqual([ - ` + foo@${add_path}`, "", + ` installed file:${add_path}@${add_path}`, "", "", " 1 packages installed", @@ -403,8 +403,9 @@ it("should add aliased dependency (npm)", async () => { expect(stdout).toBeDefined(); const out = await new Response(stdout).text(); expect(out.replace(/\s*\[[0-9\.]+m?s\]\s*$/, "").split(/\r?\n/)).toEqual([ - " + bar@0.0.3", "", + " installed bar@0.0.3 with binaries:", + " - baz-run", "", "", " 1 packages installed", @@ -457,8 +458,9 @@ it("should add aliased dependency (GitHub)", async () => { expect(stdout).toBeDefined(); const out = await new Response(stdout).text(); expect(out.replace(/\s*\[[0-9\.]+m?s\]\s*$/, "").split(/\r?\n/)).toEqual([ - " + uglify@github:mishoo/UglifyJS#e219a9a", "", + " installed uglify@github:mishoo/UglifyJS#e219a9a with binaries:", + " - uglifyjs", "", "", " 1 packages installed", -- cgit v1.2.3