( plugin: Pick<PluginConfig, 'groups'>, )
| 109 | } |
| 110 | |
| 111 | export function lighthouseGroupSlugs( |
| 112 | plugin: Pick<PluginConfig, 'groups'>, |
| 113 | ): LighthouseGroupSlug[] { |
| 114 | if (!plugin.groups) { |
| 115 | return []; |
| 116 | } |
| 117 | return extractGroupSlugs(plugin.groups).filter(isLighthouseGroupSlug); |
| 118 | } |
| 119 | |
| 120 | class NotImplementedError extends Error { |
| 121 | constructor(plural: string, slugs: string[]) { |
no test coverage detected