// 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/CodeSnippet/CodeSnippet.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'CodeSnippet.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .code-snippet { position: relative; padding: 16px; padding-right: 48px; background-color: oklch(0.9508 0.0232 264.4578); border: 1px dashed oklch(0.4749 0.2387 264.9627); } .code-snippet__content { position: relative; margin: 0; font-family: 'JetBrains Mono', 'Inter', 'Arial', sans-serif; font-size: 12px; font-weight: 400; line-height: 18px; color: oklch(0 0 none); letter-spacing: 0.1px; word-break: break-all; white-space: pre-wrap; } .code-snippet__content--url { font-family: 'Inter', 'Arial', sans-serif; color: oklch(0.4749 0.1935 259.9826); } .code-snippet__content--collapsed { overflow: hidden; } .code-snippet__copy { position: absolute; top: 12px; right: 12px; } .code-snippet__footer { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: flex-end; margin-top: 4px; padding: 16px; } .code-snippet__footer--collapsed { background: linear-gradient(to bottom, transparent 0%, oklch(0.9508 0.0232 264.4578) 100%); } `); }); });