import test from "node:test"; import assert from "node:assert/strict"; import { readFileSync, readdirSync } from "node:fs"; test("Node UI uses canonical controls and never exposes vendor commands", () => { for (const file of readdirSync(new URL("../src/", import.meta.url)).filter(name => name.endsWith(".tsx"))) { const source = readFileSync(new URL(`../src/${file}`, import.meta.url), "utf8"); assert.doesNotMatch(source, /<(button|input|select|textarea)\b/, file); assert.doesNotMatch(source, /mqtt|Quick Connect|BLE_UUID|openapi_key|192\.168\.68\.50|dcsudo/, file); } });