// 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/StatsCard/StatsCard.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'StatsCard.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .statsCard { --borderRadius: 0px; position: relative; display: flex; flex-wrap: wrap; padding: 16px; border: 1px solid oklch(0.8761 0 none); border-radius: var(--borderRadius); } @media only screen and (min-width: 1024px) { .statsCard { padding-top: 20px; } } .statsCard__flexRow { display: flex; gap: 8px; align-items: center; width: 100%; } .statsCard__icon { position: absolute; top: 0; left: 10px; transform: translateY(-50%); padding: 0 8px; line-height: 1; background: white; } @media only screen and (min-width: 1024px) { .statsCard__icon > .icon--md { width: 32px; height: 32px; } .statsCard__icon > .icon--md::before { font-size: 32px; } } .statsCard__title { width: 100%; margin: 0; font-size: 14px; color: oklch(0 0 none); } .statsCard__description { margin: 0; color: oklch(0.5999 0 none); } .statsCard__value { width: 100%; margin-top: 4px; margin-bottom: 4px; font-size: 18px; line-height: 24px; color: oklch(0.7247 0.1478 233.0429); } @media only screen and (min-width: 1024px) { .statsCard__value { font-size: 22px; line-height: 28px; } } `); }); });