// Auto-generated by: pnpm test:stylesheets:update import { join } from 'node:path'; import { compileLessWithTokens } from '../../../scripts/testStylesheets/compileLessWithTokens'; import { DEFAULT_LESS_PRELUDES, DEFAULT_TOKEN_CSS_FILES } from '../../../scripts/testStylesheets/config'; describe('components/Icon/Icon.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'Icon.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .icon { --size: ; position: relative; display: inline-block; flex-grow: 0; flex-shrink: 0; width: var(--size); height: var(--size); font-size: 0; text-decoration: none; vertical-align: middle; } .icon::before { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; font-family: 'shp'; font-size: var(--size); -webkit-font-smoothing: antialiased; line-height: var(--size); text-align: center; } .icon--default::before { color: inherit; } .icon--primary::before { color: oklch(0 0 none); } .icon--secondary::before { color: oklch(0.7252 0 none); } .icon--tertiary::before { color: oklch(1 0 none); } .icon--sm { --size: 16px; } .icon--md { --size: 24px; } .icon--lg { --size: 32px; } `); }); });