From 6fa35839c357d15efb206d5ff5eb02ebbd6cdc7e Mon Sep 17 00:00:00 2001 From: Dylan Conway Date: Fri, 19 Jan 2024 19:59:06 -0800 Subject: [PATCH] remove `.only`, update shell.md --- docs/runtime/shell.md | 4 +--- test/cli/install/registry/bun-install-registry.test.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/runtime/shell.md b/docs/runtime/shell.md index 6c4a3fc14f..e50005addf 100644 --- a/docs/runtime/shell.md +++ b/docs/runtime/shell.md @@ -269,9 +269,7 @@ import { $ } from "bun"; const search = "bun"; const iterator = await $`cat list.txt | grep ${search}`.lines(); -if (iterator.exitCode !== 0) { - throw new Error("oh no"); -} + for await (let line of iterator) { console.log(line); } diff --git a/test/cli/install/registry/bun-install-registry.test.ts b/test/cli/install/registry/bun-install-registry.test.ts index 79376d6e3f..354dbf2d8c 100644 --- a/test/cli/install/registry/bun-install-registry.test.ts +++ b/test/cli/install/registry/bun-install-registry.test.ts @@ -438,7 +438,7 @@ test("it should correctly link binaries after deleting node_modules", async () = expect(await exited).toBe(0); }); -test.only("it should re-symlink binaries that become invalid when updating package versions", async () => { +test("it should re-symlink binaries that become invalid when updating package versions", async () => { await writeFile( join(packageDir, "package.json"), JSON.stringify({