import { test } from "node:test"; import assert from "node:assert/strict"; import { RULE } from "../src/lifecycle/connect.ts"; // The rule goes in its own file, beside the one this workstation already has. // // **Not into it.** The file next to this belongs to the mesh that really runs here, and it is // generated — writing into it would be edited-away at best and would break real name resolution // at worst. novox/hq: never edit a file something else owns. test("the rule is its own file, not the one already there", () => { assert.match(RULE, /^\/etc\/dnsmasq\.d\/mesh-lab\.conf$/); assert.doesNotMatch(RULE, /hal/, "it would be writing into something else's file"); });