// 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/ReviewCard/ReviewCard.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'ReviewCard.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .reviewCard { --borderRadius: 0px; display: flex; flex-direction: column; border: 1px solid oklch(0.8761 0 none); border-radius: var(--borderRadius); } .reviewCard__header, .reviewCard__content, .reviewCard__footer { position: relative; padding-right: 12px; padding-left: 12px; } .reviewCard__header .typography, .reviewCard__content .typography, .reviewCard__footer .typography { margin: unset; } .reviewCard__header { display: flex; flex-direction: column; gap: 24px; align-items: stretch; padding-top: 8px; padding-bottom: 8px; } .reviewCard__content { flex-grow: 1; padding-top: 16px; padding-bottom: 16px; } .reviewCard__footer { display: flex; flex-direction: column; align-items: stretch; padding-top: 8px; padding-bottom: 8px; } .reviewCard__footer::before { content: ''; position: absolute; top: 0; right: 12px; left: 12px; display: block; border-top: 1px solid oklch(0.8761 0 none); } `); }); });