(ast: t.File)
| 17 | } |
| 18 | |
| 19 | function getJSXElementPaths(ast: t.File): NodePath<t.JSXElement>[] { |
| 20 | const paths: NodePath<t.JSXElement>[] = []; |
| 21 | traverse(ast, { |
| 22 | JSXElement(path) { |
| 23 | paths.push(path); |
| 24 | }, |
| 25 | }); |
| 26 | return paths; |
| 27 | } |
| 28 | |
| 29 | describe("jsx-scope utils", () => { |
| 30 | describe("collectJsxScopes", () => { |
no test coverage detected