// 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/Preview/Preview.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'Preview.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .preview { background-color: oklch(1 0 none); border: 1px solid oklch(0.8761 0 none); box-shadow: 0px 3px 7px 0px oklch(0 0 none / 0.1); } .preview[data-entering] { animation: previewSlide 200ms; } .preview[data-exiting] { animation: previewSlide 200ms reverse ease-in; } @keyframes previewSlide { from { opacity: 0; } to { opacity: 1; } } .preview__image { cursor: zoom-out; max-height: inherit; } .preview__thumbnail { cursor: zoom-in; max-width: unset; } `); }); });