(rules: axe.RuleMetadata[])
| 16 | |
| 17 | /** Transforms Axe rule metadata into Code PushUp audit definitions. */ |
| 18 | export function transformRulesToAudits(rules: axe.RuleMetadata[]): Audit[] { |
| 19 | return rules.map(rule => ({ |
| 20 | slug: rule.ruleId, |
| 21 | title: wrapTags(rule.help), |
| 22 | description: wrapTags(rule.description), |
| 23 | docsUrl: rule.helpUrl, |
| 24 | })); |
| 25 | } |
| 26 | |
| 27 | /** Transforms Axe rules into Code PushUp groups based on accessibility categories. */ |
| 28 | export function transformRulesToGroups(rules: axe.RuleMetadata[]): Group[] { |
no test coverage detected