From fb03aa0ffbc82d8d2e357c55b4afd5a7f779e0de Mon Sep 17 00:00:00 2001 From: Void Date: Thu, 12 Nov 2026 09:56:01 +0000 Subject: [PATCH] bubbleBounds test also pins the Bubble.tsx wiring Co-Authored-By: Claude Sonnet 5.5 --- src/app/components/message/layout/bubbleBounds.test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/app/components/message/layout/bubbleBounds.test.ts b/src/app/components/message/layout/bubbleBounds.test.ts index 3d95a839..4a9ad4da 100644 --- a/src/app/components/message/layout/bubbleBounds.test.ts +++ b/src/app/components/message/layout/bubbleBounds.test.ts @@ -1,3 +1,4 @@ +import { readFileSync } from 'fs'; import { describe, expect, it } from 'vitest'; import zlib from 'zlib'; import { compile, processVanillaFile } from '@vanilla-extract/integration'; @@ -35,4 +36,13 @@ describe('bubble rows shrink to their column', () => { const css = await emitted(); expect(declarations(css, 'BubbleContent').join('\n')).toMatch(/max-width: min\(100%, 50rem\)/); }); + + it('Bubble.tsx puts BubbleColumn on the column and BubbleContentRow on the row', () => { + const tsx = readFileSync( + `${process.cwd()}/src/app/components/message/layout/Bubble.tsx`, + 'utf8' + ); + expect(tsx).toMatch(/classNames\(css\.BubbleColumn,/); + expect(tsx).toMatch(//); + }); });