import { parse, print, traverse, } from 'putout'; import {test} from 'supertape'; import { addFlag, escape, getAttribute, getName, getText, hasAttribute, removeAttribute, setAttribute, toOptionName, } from '#common/render/jsx'; const parseFirst = (source) => { const ast = parse(source); let path = null; traverse(ast, { JSXElement(current) { path = current; current.stop(); }, }); return { ast, path, }; }; test('cloudcmd: common: render: jsx: getName', (t) => { const {path} = parseFirst('