(code: string)
| 6 | import { generate } from "../babel-interop"; |
| 7 | |
| 8 | function parseJSX(code: string): t.File { |
| 9 | return parse(code, { |
| 10 | sourceType: "module", |
| 11 | plugins: ["jsx", "typescript"], |
| 12 | }); |
| 13 | } |
| 14 | |
| 15 | function getJSXElementPath(code: string): NodePath<t.JSXElement> { |
| 16 | const ast = parseJSX(code); |
no test coverage detected