From 5ea8fe8c90eca02cce24eb5385e195e85ddee9cb Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Tue, 6 Dec 2022 18:48:02 -0800 Subject: Update types (#1581) * Fix TS types, improve child_process types * Add prettier * Add ArrayBuffer types * Add namespace Bun, improve types for SharedArrayBuffer, add toStrictEqual * Improve types, add test files for types * Update type tests * Fix typo * Add stdio * Stdio types * Use latest setup-bun * Update action * Update action * Update action Co-authored-by: Colin McDonnell Co-authored-by: Ashcon Partovi --- test/bun.js/child_process.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/bun.js/child_process.test.ts b/test/bun.js/child_process.test.ts index bdb197180..6fe5bf996 100644 --- a/test/bun.js/child_process.test.ts +++ b/test/bun.js/child_process.test.ts @@ -36,13 +36,13 @@ const it: typeof it_ = (label, fn) => { } else if (fn.constructor.name === "AsyncFunction") { return it_(label, async () => { gcTick(); - await fn(); + await fn(() => {}); gcTick(); }); } else { return it_(label, () => { gcTick(); - fn(); + fn(() => {}); gcTick(); }); } @@ -204,7 +204,7 @@ describe("spawn()", () => { it("should allow explicit setting of argv0", async () => { var resolve; - const promise = new Promise((resolve1) => { + const promise = new Promise((resolve1) => { resolve = resolve1; }); process.env.NO_COLOR = "1"; -- cgit v1.2.3