Skip to content

Commit 0afee7a

Browse files
committed
test(codemod-split-engine): pin the hand-module half of the --hand-docs proof
An ablation of the per-module comparison stayed green: every case so far edited a moved docblock, which the engine.ts half catches. One case now edits a body byte in a hand module. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYHBS7P5hkUQrNHkHZ
1 parent 9f387b1 commit 0afee7a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/codemod-split-engine.mjs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3162,7 +3162,7 @@ const SELF_TEST_BATTERIES = Object.freeze({
31623162
'import prune': 4,
31633163
'refusals': 6,
31643164
'scoped classes (second pass)': 16,
3165-
'hand-series docblocks (third pass)': 18,
3165+
'hand-series docblocks (third pass)': 19,
31663166
});
31673167
const SELF_TEST_BATTERY_FLOOR = 5;
31683168

@@ -3780,6 +3780,7 @@ async function selfTest() {
37803780
}
37813781
const fails = (host, edited) => verifyHandDocs(tm, input, host, mods, new Map([...mods, ...out.modules, ...edited])).failures.length > 0;
37823782
check('one edited character in a moved docblock fails', fails(out.host, [['engine-alpha.ts', alpha.replace('Second paragraph.', 'Second paragraph!')]]));
3783+
check('one edited character elsewhere in a hand module fails', fails(out.host, [['engine-alpha.ts', alpha.replace('return this.n + n;', 'return this.n - n;')]]));
37833784
check('a moved docblock dropped from its function fails', fails(out.host, [['engine-alpha.ts', alpha.replace(/\/\*\*\n \* A private docblock[\s\S]*?\*\/\n/, '')]]));
37843785
check('a staying docblock dropped from the class fails', fails(out.host.replace(' /** A public docblock: it stays. */\n', ''), []));
37853786
check('a public docblock moved off the class fails', fails(

0 commit comments

Comments
 (0)