// 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/ContextMenu/ContextMenu.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'ContextMenu.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .contextMenu__popover { will-change: transform; overflow-y: auto; display: flex; flex-direction: column; background-color: oklch(1 0 none); box-shadow: 0px 3px 7px 0px oklch(0 0 none / 0.1), 0px -3px 7px 0px oklch(0 0 none / 0.1); } .contextMenu__popover[data-placement^="top"] { margin-bottom: 8px; } .contextMenu__popover[data-placement^="bottom"] { margin-top: 8px; } .contextMenu__popover[data-placement^="left"] { margin-right: 8px; } .contextMenu__popover[data-placement^="right"] { margin-left: 8px; } .contextMenu__popover--submenu[data-placement^="top"] { margin-bottom: 0; } .contextMenu__popover--submenu[data-placement^="bottom"] { margin-top: 0; } .contextMenu__popover--submenu[data-placement^="left"] { margin-right: 0; } .contextMenu__popover--submenu[data-placement^="right"] { margin-left: 0; } `); }); });