(rules: axe.RuleMetadata[])
| 26 | |
| 27 | /** Transforms Axe rules into Code PushUp groups based on accessibility categories. */ |
| 28 | export function transformRulesToGroups(rules: axe.RuleMetadata[]): Group[] { |
| 29 | const groups = createCategoryGroups(rules); |
| 30 | return groups.filter(({ refs }) => refs.length > 0); |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Maps preset to corresponding axe-core tags. |
no test coverage detected