(str: string)
| 1 | import { parseJsx } from '../parsers/jsx'; |
| 2 | |
| 3 | export const parseNode = (str: string) => { |
| 4 | return parseJsx(` |
| 5 | export default function MyComponent() { |
| 6 | return (${str}) |
| 7 | } |
| 8 | `).children[0]; |
| 9 | }; |
| 10 | export const parseNodes = (str: string) => { |
| 11 | return parseJsx(` |
| 12 | export default function MyComponent() { |
nothing calls this directly
no test coverage detected