Skip to content

test-selection gap: Extend detect-tests job to generate "HTML views to JS components" mappings

Context

In gitlab-org/quality/engineering-productivity/master-broken-incidents#30 (comment 1221582692), we have noticed that if a partial gets changed, the JS specs that are triggered in that view would not be run, which resulted in a master-broken scenario.

Goal

If a view is changed, we should try to identify the javascript components source files that are used in this view, if any, so that we can then pass them to the jest command with the --findRelatedTests flag to detect which minimal specs to run.