Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-conway committed Jan 11, 2025
1 parent d174d40 commit fc326ea
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/cli/install/bun-install-registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1970,6 +1970,25 @@ test("--lockfile-only", async () => {
expect((await Bun.file(join(packageDir, "bun.lock")).text()).replaceAll(/localhost:\d+/g, "localhost:1234")).toBe(
firstLockfile,
);

// --silent works
const {
stdout,
stderr,
exited: exited2,
} = spawn({
cmd: [bunExe(), "install", "--lockfile-only", "--silent"],
cwd: packageDir,
stdout: "pipe",
stderr: "pipe",
env,
});

expect(await exited2).toBe(0);
const out = await Bun.readableStreamToText(stdout);
const err = await Bun.readableStreamToText(stderr);
expect(out).toBe("");
expect(err).toBe("");
});

describe("bundledDependencies", () => {
Expand Down

0 comments on commit fc326ea

Please sign in to comment.