(file: string)
| 71 | }); |
| 72 | |
| 73 | const importedFiles = (file: string) => { |
| 74 | const ids = cg.getNodesInFile(file).map((n) => n.id); |
| 75 | return [...new Set(cg.getOutgoingEdgesFrom(ids, ['imports']) |
| 76 | .map((e) => cg.getNode(e.target)!.filePath) |
| 77 | .filter((p) => p !== file))].sort(); |
| 78 | }; |
| 79 | |
| 80 | describe('CommonJS require', () => { |
| 81 | it('imports the files a module requires, used as values or not, and no package', () => { |
no test coverage detected