aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-15 04:10:05 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-15 04:10:05 -0700
commit20f61b236980cf12dee0b0b80b04f605bd517581 (patch)
treeeb4e7e3a476d854e5b8b2d7b20307746d18e2fe4
parent9168be4f15c265a776066602a9721e0ca11d112c (diff)
downloadbun-20f61b236980cf12dee0b0b80b04f605bd517581.tar.gz
bun-20f61b236980cf12dee0b0b80b04f605bd517581.tar.zst
bun-20f61b236980cf12dee0b0b80b04f605bd517581.zip
Fix test
-rwxr-xr-xtest/bun.lockbbin163146 -> 163146 bytes
-rw-r--r--test/js/third_party/prompts/prompts.test.ts3
-rw-r--r--test/package.json2
3 files changed, 2 insertions, 3 deletions
diff --git a/test/bun.lockb b/test/bun.lockb
index a6a467f5b..f4097bda9 100755
--- a/test/bun.lockb
+++ b/test/bun.lockb
Binary files differ
diff --git a/test/js/third_party/prompts/prompts.test.ts b/test/js/third_party/prompts/prompts.test.ts
index 9c62456f5..7e052fa6d 100644
--- a/test/js/third_party/prompts/prompts.test.ts
+++ b/test/js/third_party/prompts/prompts.test.ts
@@ -14,14 +14,13 @@ test("works with prompts", async () => {
child.stdin.write("999\n");
Bun.sleepSync(100);
child.stdin.write("hi\n");
+ expect(await child.exited).toBe(0);
var out = "";
for await (const chunk of child.stdout) {
out += new TextDecoder().decode(chunk);
}
- expect(await child.exited).toBe(0);
-
expect(out).toContain('twitter: "@dylan"');
expect(out).toContain("age: 999");
expect(out).toContain('secret: "hi"');
diff --git a/test/package.json b/test/package.json
index d7ae63d11..ad28f114a 100644
--- a/test/package.json
+++ b/test/package.json
@@ -27,7 +27,7 @@
"pg-connection-string": "2.6.1",
"postgres": "3.3.5",
"prisma": "5.1.1",
- "prompts": "^2.4.2",
+ "prompts": "2.4.2",
"socket.io": "4.7.1",
"socket.io-client": "4.7.1",
"supertest": "6.3.3",