* Function to check if the path is a module and return its name. * @param {string} str The path to check * @returns {string} module name
(str)
| 22 | * @returns {string} module name |
| 23 | */ |
| 24 | function getModuleName(str) { |
| 25 | if (str.startsWith('../') && str.endsWith('/common/index.mjs')) { |
| 26 | return 'common'; |
| 27 | } |
| 28 | |
| 29 | return path.basename(str); |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Function to check if a node has an argument that is a module and |
no outgoing calls
no test coverage detected
searching dependent graphs…