While processing snykGraphs from extractedJSON to depGraph,
projectName is generated using the basename of the rootDir,
we were not handling it if by any chance it was null or undefined.
Now that we handling it properly, we are preventing possible scanning errors.
refactor:
Clarifying the purpose of few functions
Moving the loop where we process all
the existing projects in the extractedJSON from snykGraph to depGraph
away from getAllDeps to its own function processProjectsInExtractedJSON,
makes the projects process testable, enabling us of have more confidence on expected results
fix:
we were not handling it if by any chance it was null or undefined. Now that we handling it properly, we are preventing possible scanning errors.
refactor:
Clarifying the purpose of few functions
Moving the loop where we process all the existing projects in the extractedJSON from snykGraph to depGraph away from getAllDeps to its own function
processProjectsInExtractedJSON
, makes the projects process testable, enabling us of have more confidence on expected resultsAdded a test for
processProjectsInExtractedJSON