// @vitest-environment jsdom import { describe, expect, it } from 'vitest'; import { isSemanticallyEmptyText } from '../../../src/react/text/richText'; describe('isSemanticallyEmptyText', () => { it.each(['', '
', '', '
\n
'])( 'treats %j as empty', (html) => expect(isSemanticallyEmptyText(html)).toBe(true), ); it.each(['A
', 'δΈ
', 'One