( urls: PluginUrls, )
| 198 | } |
| 199 | |
| 200 | export async function configureLighthousePlugin( |
| 201 | urls: PluginUrls, |
| 202 | ): Promise<CoreConfig> { |
| 203 | const lhPlugin = await lighthousePlugin(urls); |
| 204 | return { |
| 205 | plugins: [lhPlugin], |
| 206 | categories: [ |
| 207 | { |
| 208 | slug: 'performance', |
| 209 | title: 'Performance', |
| 210 | refs: lighthouseGroupRefs(lhPlugin, 'performance'), |
| 211 | }, |
| 212 | { |
| 213 | slug: 'a11y', |
| 214 | title: 'Accessibility', |
| 215 | refs: lighthouseGroupRefs(lhPlugin, 'accessibility'), |
| 216 | }, |
| 217 | { |
| 218 | slug: 'best-practices', |
| 219 | title: 'Best Practices', |
| 220 | refs: lighthouseGroupRefs(lhPlugin, 'best-practices'), |
| 221 | }, |
| 222 | { |
| 223 | slug: 'seo', |
| 224 | title: 'SEO', |
| 225 | refs: lighthouseGroupRefs(lhPlugin, 'seo'), |
| 226 | }, |
| 227 | ], |
| 228 | }; |
| 229 | } |
| 230 | |
| 231 | export function configureAxePlugin( |
| 232 | urls: PluginUrls, |
no test coverage detected