(filePath)
| 81 | ****************/ |
| 82 | |
| 83 | const getCode = (filePath) => { |
| 84 | const code = fs.readFileSync(filePath, "utf8"); |
| 85 | const parsedCode = parse(code, { |
| 86 | sourceType: "module", |
| 87 | plugins: ["jsx", "typescript"], |
| 88 | }); |
| 89 | return {code, parsedCode}; |
| 90 | }; |
| 91 | |
| 92 | const mapVariables = (parsedCode) => { |
| 93 | // Gather variable declarations, both regular and exported. |
no test coverage detected