Module: pipeline/impactAnalysis

Pure helpers for mapping git changed files to impacted tests.

Source:

Methods

(static) computeImpactedTests(args) → {Object}

Resolve the subset of approved tests impacted by git-file and crawl-page diffs.

Parameters:
Name Type Description
args Object
Properties
Name Type Attributes Description
tests Array.<Object>
changedFiles Array.<string> | null | undefined <optional>
changedPages Array.<string> <optional>
routeMap Object <optional>
Source:
Returns:
Type
Object

(static) routePrefixesForChangedFiles(changedFiles, routeMapopt) → {Array.<string>}

Derive URL path prefixes that are likely affected by a list of changed files.

Parameters:
Name Type Attributes Description
changedFiles Array.<string>
routeMap Object <optional>
Source:
Returns:
Type
Array.<string>