diff options
author | 2022-12-06 18:48:02 -0800 | |
---|---|---|
committer | 2022-12-06 18:48:02 -0800 | |
commit | 5ea8fe8c90eca02cce24eb5385e195e85ddee9cb (patch) | |
tree | df203eec0af050b0b046a7e6de608c135bf3b7bf /test | |
parent | 84b2cc1739b9191cc51b02a9989bc07d38afca11 (diff) | |
download | bun-5ea8fe8c90eca02cce24eb5385e195e85ddee9cb.tar.gz bun-5ea8fe8c90eca02cce24eb5385e195e85ddee9cb.tar.zst bun-5ea8fe8c90eca02cce24eb5385e195e85ddee9cb.zip |
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 <colinmcd@alum.mit.edu>
Co-authored-by: Ashcon Partovi <ashcon@partovi.net>
Diffstat (limited to 'test')
-rw-r--r-- | test/bun.js/child_process.test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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<string>((resolve1) => { resolve = resolve1; }); process.env.NO_COLOR = "1"; |