// 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/Toggle/Toggle.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'Toggle.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .bool-property.muted { cursor: default; opacity: 0.6; } .toggle { cursor: pointer; width: 24px; height: 24px; padding: 0; background-color: transparent; border: none; } .toggle--secondary { color: oklch(0.7252 0 none); } .toggle--success { color: oklch(0.6007 0.1894 139.0123); } .toggle--ghost { box-shadow: none; } .toggle--disabled { cursor: default; } `); }); });