v1.59.0-beta.8: audit follow-ups and inner-corner sun rays

This commit is contained in:
Matysh
2026-08-05 20:07:27 +03:00
parent 3ad4e9d803
commit e188f9d609
31 changed files with 619 additions and 204 deletions
+6 -6
View File
@@ -14,13 +14,13 @@ const count = (dir, match, re) =>
const files = (dir, match) => readdirSync(dir).filter((f) => match.test(f)).length;
// AUD-159B6-06: counting only `test(` under-reported by every suite written
// with describe/it — the inventory claimed 339 while `npm test` ran 352. Both
// spellings are the same layer, so both are counted (indented `it(` included).
// Count both node:test spellings and indented pytest methods. Pure backend
// includes validation plus trail helper/recorder tests; only `test_ha_*` needs
// the Home Assistant harness (AUD-159B7-03).
const rows = [
['frontend unit (node:test)', count('test', /\.test\.mjs$/, /^\s*(test|it)\(/gm)],
['pure backend (pytest, no HA)', count('tests_backend', /^test_validation\.py$/, /^def test_/gm)],
['HA-harness backend (CI, py3.13)', count('tests_backend', /^test_ha_.*\.py$/, /^async def test_|^def test_/gm)],
['Node unit (frontend + tooling)', count('test', /\.test\.mjs$/, /^\s*(test|it)\(/gm)],
['pure backend (pytest, no HA)', count('tests_backend', /^test_(?!ha_).*\.py$/, /^\s*(?:async\s+)?def test_/gm)],
['HA-harness backend (CI, py3.13)', count('tests_backend', /^test_ha_.*\.py$/, /^\s*(?:async\s+)?def test_/gm)],
['browser smokes (headless chromium)', files('demo', /^smoke_.*\.mjs$/)],
];
const w = Math.max(...rows.map(([n]) => n.length));