mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
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:
@@ -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: [{
|
||||
|
||||
Reference in New Issue
Block a user