Cotton code
11 lines · 619 B · TypeScriptRaw
import { readFileSync } from "node:fs";import { join } from "node:path";import { expect, it } from "vitest";// RULE: The development household's login launcher leaves its server alive after the launcher exits.it("lets the background household outlive the launchd up job", () => {  // launchd otherwise kills the process group when the short-lived `up` exits.  const script = readFileSync(join(__dirname, "..", "dev-household.sh"), "utf8");  const installer = script.split("cmd_install() {")[1].split("install_defects_watcher() {")[0];  expect(installer).toContain("<key>AbandonProcessGroup</key><true/>");});