diff --git a/packages/typescript-edit-benchmark/fixtures.tar.gz b/packages/typescript-edit-benchmark/fixtures.tar.gz index 0080f0d40..16e68e207 100644 Binary files a/packages/typescript-edit-benchmark/fixtures.tar.gz and b/packages/typescript-edit-benchmark/fixtures.tar.gz differ diff --git a/packages/typescript-edit-benchmark/src/generate.ts b/packages/typescript-edit-benchmark/src/generate.ts index 41617e46a..79ffacc37 100644 --- a/packages/typescript-edit-benchmark/src/generate.ts +++ b/packages/typescript-edit-benchmark/src/generate.ts @@ -134,9 +134,9 @@ interface MutationPlan { } const BLOCK_SIZES: SizeRange[] = [ - [6, 20], [6, 20], [21, 60], + [61, 150], [6, 20], [21, 60], [6, 20], @@ -171,11 +171,11 @@ const MUTATION_PLANS: Record = { "swap-adjacent-lines": { count: 6 }, "duplicate-line-flip": { count: 6 }, "identifier-multi-edit": { count: 10 }, - "swap-if-else": { count: 6 }, - "wrap-redundant-if": { count: 12, sizes: BLOCK_SIZES }, - "swap-sibling-blocks": { count: 12, sizes: BLOCK_SIZES }, + "swap-if-else": { count: 8 }, + "wrap-redundant-if": { count: 14, sizes: BLOCK_SIZES }, + "swap-sibling-blocks": { count: 14, sizes: BLOCK_SIZES }, "duplicate-block": { count: 6, sizes: BLOCK_SIZES }, - "move-distant-block": { count: 14, sizes: BLOCK_SIZES }, + "move-distant-block": { count: 10, sizes: BLOCK_SIZES }, "remove-case-label": { count: 8 }, "composite-multi-edit": { count: 16 }, }; diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index cf399705c..f70371acf 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -2,10 +2,6 @@ ## [Unreleased] -### Added - -- Added a `postmortem.quit` configuration option to safely handle shutdown paths when the terminal output has already disconnected. - ## [17.1.8] - 2026-07-28 ### Added diff --git a/packages/utils/test/postmortem-quit.test.ts b/packages/utils/test/postmortem-quit.test.ts deleted file mode 100644 index 3ac960495..000000000 --- a/packages/utils/test/postmortem-quit.test.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { describe, expect, it } from "bun:test"; -import * as postmortem from "../src/postmortem"; - -const childFlag = "--quit-without-drain-child"; - -if (process.argv.includes(childFlag)) { - Object.defineProperty(process.stdout, "writableLength", { value: 1, configurable: true }); - await postmortem.quit(23, { drainStdout: false }); -} - -describe("postmortem quit", () => { - it("exits without waiting for pending stdout when draining is disabled", async () => { - const child = Bun.spawn([process.execPath, import.meta.path, childFlag], { - stdout: "pipe", - stderr: "pipe", - }); - const timeout = Bun.sleep(500).then(() => "timeout" as const); - try { - expect(await Promise.race([child.exited, timeout])).toBe(23); - } finally { - child.kill(); - await child.exited; - } - }); -});