test: prune redundant and obsolete coverage

This commit is contained in:
morluto committed 2026-11-17 14:16:24 -05:00
1 parent 05be423acb
commit 015f726a9e
39 files changed
+317 -979

No files matched your search

@@ -6,18 +6,14 @@ import { expect, it } from "vitest";
import { createTestTempDirectory } from "../../tests/fixtures/temporaryDirectory.js";
import { resolveAppleBundleExecutable } from "./AppBundleExecutable.js";
it.each([
["no comment", ""],
["block comment", "/* App metadata */\n"],
["line comment", "// App metadata\n"],
["mixed comments", " \t/* header */\n// executable selection\n"],
])("resolves an OpenStep Info.plist with %s", async (_label, prefix) => {
it("resolves the declared executable from a commented OpenStep Info.plist", async () => {
const root = await createTestTempDirectory("rea-openstep-bundle-");
const bundle = join(root, "Fixture.app");
const programs = join(bundle, "Contents", "MacOS");
const executable = join(programs, "Fixture");
const infoPlist = join(bundle, "Contents", "Info.plist");
const source = `${prefix}{ CFBundleExecutable = Fixture; }`;
const source =
" \t/* header */\n// executable selection\n{ CFBundleExecutable = Fixture; }";
await mkdir(programs, { recursive: true });
await writeFile(infoPlist, source);
await writeFile(executable, "fixture - never executed");