import { spawnSync } from "node:child_process"; import { describe, expect, it } from "vitest"; // 09-07 (D-10). The removal gate takes the feature to remove as an argument // instead of hard-coding the sample; an id no feature declares stops it before // any fixture is built. describe("feature removal argument", () => { it("refuses a feature id that no installed feature declares", () => { const run = spawnSync( process.execPath, ["scripts/test-sample-removal.ts", "--feature=missing-feature"], { encoding: "utf8" }, ); expect(run.status).not.toBe(0); expect(run.stderr).toMatch( /No installed feature declares FEATURE_MODULE_ID "missing-feature"/u, ); }); });