From 76ec34c436b6b54f538a4af4446e30abb58e4af8 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 2 Aug 2026 16:45:58 +0000 Subject: [PATCH] OPS15: remove B102 TooltipProvider JSX nesting guard (#242) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Delete the source-shape regex pin from codebaseConventions.unit.spec.ts. Behavioral coverage remains in campaignQuickActionsDrawer.unit.spec.tsx (focus→suggest with priority:alta hits). Co-authored-by: Francisco Solla --- tests/unit/codebaseConventions.unit.spec.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tests/unit/codebaseConventions.unit.spec.ts b/tests/unit/codebaseConventions.unit.spec.ts index 7789c165..432ccc9a 100644 --- a/tests/unit/codebaseConventions.unit.spec.ts +++ b/tests/unit/codebaseConventions.unit.spec.ts @@ -667,22 +667,3 @@ describe('public site metadata global access', () => { expect(offenders, 'import and call resolveSiteMetadata from @/utilities/seo').toEqual([]) }) }) - -describe('campaign TooltipProvider wraps quick-actions chrome (B102)', () => { - // B91/B100 mount the drawer as a sibling of the scrollport inside - // CampaignAppScrollChrome. Nesting TooltipProvider only around {children} - // left focus→suggest priority hits (CampaignHoverTooltip) without a - // provider and crashed the page. - it('lifts TooltipProvider around CampaignAppScrollChrome in the app layout', () => { - const layoutPath = resolve(repoRoot, 'src/app/(campaign)/campanha/(app)/layout.tsx') - expect(existsSync(layoutPath)).toBe(true) - const source = readFileSync(layoutPath, 'utf8') - - expect(source).toMatch( - /]*>\s*\s*<\/TooltipProvider>/, - ) - expect(source).not.toMatch( - /]*>\s*\s*<\/CampaignAppScrollChrome>/, - ) - }) -})