aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/bun.js/spawn.test.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/test/bun.js/spawn.test.ts b/test/bun.js/spawn.test.ts
index ea062de59..313606cd7 100644
--- a/test/bun.js/spawn.test.ts
+++ b/test/bun.js/spawn.test.ts
@@ -53,7 +53,7 @@ for (let [gcTick, label] of [
const process = Bun.spawnSync({
cmd: ["bash", "-c", "sleep 2"],
stdout: "pipe",
- signal: controller.signal
+ signal: controller.signal,
});
gcTick();
expect(process.exitCode).toBe(null);
@@ -394,22 +394,21 @@ for (let [gcTick, label] of [
const process = Bun.spawn({
cmd: ["bash", "-c", "sleep 2"],
stdout: "pipe",
- signal: controller.signal
+ signal: controller.signal,
});
gcTick();
- setTimeout(()=> {
+ setTimeout(() => {
controller.abort();
- }, 15)
-
+ }, 15);
+
try {
await process.exited;
- } catch(err) {
+ } catch (err) {
expect(err instanceof DOMException).toBe(true);
expect(err?.name).toBe("AbortError");
expect(err?.message).toBe("The operation was aborted.");
}
-
});
});
});
-} \ No newline at end of file
+}
'ssr-redirect'>ssr-redirect Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/packages/astro/test/fixtures/astro-get-static-paths (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-06-28Fix Tailwind integration Typescript warning (#3732)Gravatar Victor 2-1/+6
2022-06-27[ci] formatGravatar bholmesdev 2-3/+3
2022-06-27Refactor: remove Deno shim to esbuild "banner" (#3734)Gravatar Ben Holmes 7-15/+22
2022-06-27[ci] formatGravatar FredKSchott 9-23/+25
2022-06-27update telemetry to support more anonymized project id (#3713)Gravatar Fred K. Schott 20-351/+311
2022-06-27SImplify "astro add" by removing confusing multi-select (#3715)Gravatar Fred K. Schott 13-258/+157