From 8c021d1242204f36d248980e3af1a0998a882d12 Mon Sep 17 00:00:00 2001 From: garrytan Date: Tue, 27 Oct 2026 03:29:30 +0000 Subject: [PATCH] test(design-lint): the content-realism tells keep one checker, credited in NOTICE.md Names the removed lib/design-craft.ts and test/design-craft.test.ts so pregate selects a lane for the deletions (PREGATE_NO_LANE at 17635b6a7). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/design-craft-resolvers.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/design-craft-resolvers.test.ts b/test/design-craft-resolvers.test.ts index 431388c63..ada0527f1 100644 --- a/test/design-craft-resolvers.test.ts +++ b/test/design-craft-resolvers.test.ts @@ -91,4 +91,13 @@ describe('design-shotgun to design-html handoff', () => { expect(craft).toContain(''); for (const text of [html, craft]) for (const gone of ['gstack-design-craft', 'craft_exceptions', '--accepted', 'CRAFT_']) expect(text).not.toContain(gone); }); + + // Value: protects=the content-realism tells have one checker, the lint's copy tier, and NOTICE.md credits the adapted rules to the file that ships them; fails_when=a merge restores the removed checker, its bin or its suite beside the copy tier, or NOTICE.md still credits the removed files; why_new=the fold deleted the second checker and no other test notices its return; seam=none; no_claim=what each tell detects (test/design-lint.test.ts) + test('the content-realism tells have one checker, the lint copy tier, and NOTICE.md credits it', () => { + for (const gone of ['lib/design-craft.ts', 'bin/gstack-design-craft', 'test/design-craft.test.ts']) expect(fs.existsSync(path.join(ROOT, gone))).toBe(false); + const notice = read('NOTICE.md'); + expect(notice).toContain('`lib/design-lint/rules/copy.ts`: the content-realism and ship-floor tells'); + expect(notice).not.toContain('lib/design-craft.ts'); + expect(notice).not.toContain('bin/gstack-design-craft'); + }); });