From 415e34bb70b61fe2324d33e265de007b88ad2b4d Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Wed, 17 Jun 2026 00:48:08 -0300 Subject: [PATCH] test(quality): reword test-masking self-test comments to avoid literal masking patterns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The added allowlist-test comments contained the literal strings 'assert.ok(true)' and '.skip' which the masking detector's own regexes match as text — making the gate flag its own test file (net +1 tautology/skip/extended-tautology vs main). Reworded to plain prose ('a new tautology', 'a new skip marker'); test logic unchanged (24/24 pass). --- tests/unit/check-test-masking.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/check-test-masking.test.ts b/tests/unit/check-test-masking.test.ts index 4cdfb3e96d..192c60f0c6 100644 --- a/tests/unit/check-test-masking.test.ts +++ b/tests/unit/check-test-masking.test.ts @@ -273,11 +273,11 @@ test("evaluateMasking: allowlist exempts ONLY reduction — tautology/skip still { file: "legit.test.ts", baseAsserts: 5, - headAsserts: 3, // reduction (exempt) + headAsserts: 3, // net reduction — exempt for allowlisted file baseTaut: 0, - headTaut: 1, // new assert.ok(true) (NOT exempt) + headTaut: 1, // a new tautology — NOT exempt baseSkips: 0, - headSkips: 1, // new .skip (NOT exempt) + headSkips: 1, // a new skip marker — NOT exempt baseExtTaut: 0, headExtTaut: 0, },