Skip to content

Commit

Permalink
update test/bun.lockb (#14746)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-conway authored Oct 24, 2024
1 parent 9643a92 commit 27ef860
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 35 deletions.
Binary file modified test/bun.lockb
Binary file not shown.
13 changes: 1 addition & 12 deletions test/cli/install/bun-link.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,18 +397,7 @@ it("should link dependency without crashing", async () => {
expect(await new Response(stdout1).text()).toContain(`Success! Registered "${link_name}"`);
expect(await exited1).toBe(0);

const {
stdout: stdout2,
stderr: stderr2,
exited: exited2,
} = spawn({
cmd: [bunExe(), "install"],
cwd: package_dir,
stdout: "pipe",
stdin: "pipe",
stderr: "pipe",
env,
});
const { out: stdout2, err: stderr2, exited: exited2 } = await runBunInstall(env, package_dir);
const err2 = await new Response(stderr2).text();
expect(err2.split(/\r?\n/)).toEqual(["Saved lockfile", ""]);
const out2 = await new Response(stdout2).text();
Expand Down
46 changes: 23 additions & 23 deletions test/cli/install/registry/bun-install-registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ describe("certificate authority", () => {
env,
});
let out = await Bun.readableStreamToText(stdout);
let err = await Bun.readableStreamToText(stderr);
let err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("DEPTH_ZERO_SELF_SIGNED_CERT");
expect(await exited).toBe(1);

Expand Down Expand Up @@ -756,7 +756,7 @@ export async function publish(
});

const out = await Bun.readableStreamToText(stdout);
const err = await Bun.readableStreamToText(stderr);
const err = stderrForInstall(await Bun.readableStreamToText(stderr));
const exitCode = await exited;
return { out, err, exitCode };
}
Expand Down Expand Up @@ -7512,7 +7512,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
}));

err = await Bun.readableStreamToText(stderr);
err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("Saved lockfile");
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
Expand Down Expand Up @@ -7745,7 +7745,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
}));

err = await Bun.readableStreamToText(stderr);
err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("Saved lockfile");
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
Expand Down Expand Up @@ -8002,7 +8002,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
}));

err = await Bun.readableStreamToText(stderr);
err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("Saved lockfile");
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
Expand Down Expand Up @@ -8844,7 +8844,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
});

let err = await Bun.readableStreamToText(stderr);
let err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("Saved lockfile");
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
Expand Down Expand Up @@ -8893,7 +8893,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
}));

err = await Bun.readableStreamToText(stderr);
err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("Saved lockfile");
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
Expand Down Expand Up @@ -8939,7 +8939,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {

env.PATH = originalPath;

let err = await Bun.readableStreamToText(stderr);
let err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("No packages! Deleted empty lockfile");
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
Expand Down Expand Up @@ -8978,7 +8978,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {

env.PATH = originalPath;

let err = await Bun.readableStreamToText(stderr);
let err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("No packages! Deleted empty lockfile");
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
Expand Down Expand Up @@ -9008,7 +9008,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
});

let err = await Bun.readableStreamToText(stderr);
let err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("Saved lockfile");
expect(err).not.toContain("error:");
expect(err).not.toContain("warn:");
Expand Down Expand Up @@ -9038,7 +9038,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
}));

err = await Bun.readableStreamToText(stderr);
err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("bun pm untrusted");
expect(err).not.toContain("error:");
expect(err).not.toContain("warn:");
Expand Down Expand Up @@ -9088,7 +9088,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
});

let err = await Bun.readableStreamToText(stderr);
let err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("Saved lockfile");
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
Expand Down Expand Up @@ -9118,7 +9118,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
}));

err = await Bun.readableStreamToText(stderr);
err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).not.toContain("error:");
expect(err).not.toContain("warn:");
out = await Bun.readableStreamToText(stdout);
Expand All @@ -9145,7 +9145,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
}));

err = await Bun.readableStreamToText(stderr);
err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("Saved lockfile");
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
Expand Down Expand Up @@ -9173,7 +9173,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
}));

err = await Bun.readableStreamToText(stderr);
err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("Saved lockfile");
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
Expand Down Expand Up @@ -9208,7 +9208,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
}));

err = await Bun.readableStreamToText(stderr);
err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("Saved lockfile");
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
Expand Down Expand Up @@ -9236,7 +9236,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
}));

err = await Bun.readableStreamToText(stderr);
err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).not.toContain("error:");
expect(err).not.toContain("warn:");
out = await Bun.readableStreamToText(stdout);
Expand Down Expand Up @@ -9348,7 +9348,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
});

const err = await Bun.readableStreamToText(stderr);
const err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).not.toContain("error:");
expect(err).not.toContain("warn:");
expect(err.split(/\r?\n/)).toEqual([
Expand Down Expand Up @@ -9401,7 +9401,7 @@ for (const forceWaiterThread of isLinux ? [false, true] : [false]) {
env: testEnv,
});

const err = await Bun.readableStreamToText(stderr);
const err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).not.toContain("error:");
expect(err).not.toContain("warn:");
expect(err.split(/\r?\n/)).toEqual([
Expand Down Expand Up @@ -9448,7 +9448,7 @@ describe("pm trust", async () => {
env,
});

let err = await Bun.readableStreamToText(stderr);
let err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).not.toContain("Saved lockfile");
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
Expand All @@ -9475,7 +9475,7 @@ describe("pm trust", async () => {
env,
});

let err = await Bun.readableStreamToText(stderr);
let err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).toContain("error: Lockfile not found");
let out = await Bun.readableStreamToText(stdout);
expect(out).toBeEmpty();
Expand All @@ -9501,7 +9501,7 @@ describe("pm trust", async () => {
env,
});

let err = await Bun.readableStreamToText(stderr);
let err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
expect(err).not.toContain("warn:");
Expand All @@ -9528,7 +9528,7 @@ describe("pm trust", async () => {
env,
}));

err = await Bun.readableStreamToText(stderr);
err = stderrForInstall(await Bun.readableStreamToText(stderr));
expect(err).not.toContain("not found");
expect(err).not.toContain("error:");
expect(err).not.toContain("warn:");
Expand Down

0 comments on commit 27ef860

Please sign in to comment.