test: check-docs mutant guard judges docs, not screenshot freshness

Run 2793 (changed_mutants 2/3): the clean run of
`resource-docs-flatten-current-yaml` was red before any mutation because the
screenshot fingerprint is stale after #490 — strict mode, which #479 reserves
for the beta candidate. The guard now runs `--screenshots=warn`; a test keeps
every check-docs guard in that mode.

Issue: #496
User-Visible: no
This commit is contained in:
Claude
2026-09-09 01:20:06 +03:00
parent f0c8ae24ba
commit 71aeb86079
2 changed files with 13 additions and 1 deletions
+4 -1
View File
@@ -559,7 +559,10 @@ const MUTANT_DEFINITIONS = [
},
{
id: 'resource-docs-flatten-current-yaml',
guard: 'node scripts/check-docs.mjs',
// Свежесть скриншотов — предупреждение (#479): мутант проверяет YAML-сниппет
// README, а не отпечаток кадров; строгий режим красил чистый прогон на любом
// src-диффе без пересъёмки (run 2793, #496).
guard: 'node scripts/check-docs.mjs --screenshots=warn',
because: 'the supported HA 2026.2+ resource snippet must stay nested under lovelace; '
+ 'a plausible-looking top-level resources block is the user-facing defect from #462 AC1',
patches: [{