(rules: axe.RuleMetadata[])
| 62 | } |
| 63 | |
| 64 | function createCategoryGroups(rules: axe.RuleMetadata[]): Group[] { |
| 65 | return objectToEntries(CATEGORY_GROUPS).map(([slug, title]) => { |
| 66 | const tag = `cat.${slug}`; |
| 67 | const categoryRules = rules.filter(({ tags }) => tags.includes(tag)); |
| 68 | |
| 69 | return createGroup(slug, title, categoryRules); |
| 70 | }); |
| 71 | } |
no test coverage detected