|
| 1 | +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html |
| 2 | + |
| 3 | +exports[`PLUGIN collect report with lighthouse-plugin NPM package > should run plugin over CLI and creates report.json 1`] = ` |
| 4 | +{ |
| 5 | + "categories": [ |
| 6 | + { |
| 7 | + "refs": [ |
| 8 | + { |
| 9 | + "plugin": "lighthouse", |
| 10 | + "slug": "performance", |
| 11 | + "type": "group", |
| 12 | + "weight": 1, |
| 13 | + }, |
| 14 | + ], |
| 15 | + "slug": "performance", |
| 16 | + "title": "Performance", |
| 17 | + }, |
| 18 | + { |
| 19 | + "refs": [ |
| 20 | + { |
| 21 | + "plugin": "lighthouse", |
| 22 | + "slug": "accessibility", |
| 23 | + "type": "group", |
| 24 | + "weight": 1, |
| 25 | + }, |
| 26 | + ], |
| 27 | + "slug": "a11y", |
| 28 | + "title": "Accessibility", |
| 29 | + }, |
| 30 | + { |
| 31 | + "refs": [ |
| 32 | + { |
| 33 | + "plugin": "lighthouse", |
| 34 | + "slug": "best-practices", |
| 35 | + "type": "group", |
| 36 | + "weight": 1, |
| 37 | + }, |
| 38 | + ], |
| 39 | + "slug": "best-practices", |
| 40 | + "title": "Best Practices", |
| 41 | + }, |
| 42 | + { |
| 43 | + "refs": [ |
| 44 | + { |
| 45 | + "plugin": "lighthouse", |
| 46 | + "slug": "seo", |
| 47 | + "type": "group", |
| 48 | + "weight": 1, |
| 49 | + }, |
| 50 | + ], |
| 51 | + "slug": "seo", |
| 52 | + "title": "SEO", |
| 53 | + }, |
| 54 | + ], |
| 55 | + "packageName": "@code-pushup/core", |
| 56 | + "plugins": [ |
| 57 | + { |
| 58 | + "audits": [ |
| 59 | + { |
| 60 | + "description": "Largest Contentful Paint marks the time at which the largest text or image is painted. [Learn more about the Largest Contentful Paint metric](https://developer.chrome.com/docs/lighthouse/performance/lighthouse-largest-contentful-paint/)", |
| 61 | + "slug": "largest-contentful-paint", |
| 62 | + "title": "Largest Contentful Paint", |
| 63 | + }, |
| 64 | + { |
| 65 | + "description": "Deprecated APIs will eventually be removed from the browser. [Learn more about deprecated APIs](https://developer.chrome.com/docs/lighthouse/best-practices/deprecations/).", |
| 66 | + "slug": "deprecations", |
| 67 | + "title": "Avoids deprecated APIs", |
| 68 | + }, |
| 69 | + { |
| 70 | + "description": "Each ARIA \`role\` supports a specific subset of \`aria-*\` attributes. Mismatching these invalidates the \`aria-*\` attributes. [Learn how to match ARIA attributes to their roles](https://dequeuniversity.com/rules/axe/4.10/aria-allowed-attr).", |
| 71 | + "slug": "aria-allowed-attr", |
| 72 | + "title": "\`[aria-*]\` attributes match their roles", |
| 73 | + }, |
| 74 | + { |
| 75 | + "description": "hreflang links tell search engines what version of a page they should list in search results for a given language or region. [Learn more about \`hreflang\`](https://developer.chrome.com/docs/lighthouse/seo/hreflang/).", |
| 76 | + "slug": "hreflang", |
| 77 | + "title": "Document has a valid \`hreflang\`", |
| 78 | + }, |
| 79 | + ], |
| 80 | + "groups": [ |
| 81 | + { |
| 82 | + "refs": [ |
| 83 | + { |
| 84 | + "slug": "largest-contentful-paint", |
| 85 | + "weight": 25, |
| 86 | + }, |
| 87 | + ], |
| 88 | + "slug": "performance", |
| 89 | + "title": "Performance", |
| 90 | + }, |
| 91 | + { |
| 92 | + "description": "These checks highlight opportunities to [improve the accessibility of your web app](https://developer.chrome.com/docs/lighthouse/accessibility/). Automatic detection can only detect a subset of issues and does not guarantee the accessibility of your web app, so [manual testing](https://web.dev/articles/how-to-review) is also encouraged.", |
| 93 | + "refs": [ |
| 94 | + { |
| 95 | + "slug": "aria-allowed-attr", |
| 96 | + "weight": 10, |
| 97 | + }, |
| 98 | + ], |
| 99 | + "slug": "accessibility", |
| 100 | + "title": "Accessibility", |
| 101 | + }, |
| 102 | + { |
| 103 | + "refs": [ |
| 104 | + { |
| 105 | + "slug": "deprecations", |
| 106 | + "weight": 5, |
| 107 | + }, |
| 108 | + ], |
| 109 | + "slug": "best-practices", |
| 110 | + "title": "Best Practices", |
| 111 | + }, |
| 112 | + { |
| 113 | + "description": "These checks ensure that your page is following basic search engine optimization advice. There are many additional factors Lighthouse does not score here that may affect your search ranking, including performance on [Core Web Vitals](https://web.dev/explore/vitals). [Learn more about Google Search Essentials](https://support.google.com/webmasters/answer/35769).", |
| 114 | + "refs": [ |
| 115 | + { |
| 116 | + "slug": "hreflang", |
| 117 | + "weight": 1, |
| 118 | + }, |
| 119 | + ], |
| 120 | + "slug": "seo", |
| 121 | + "title": "SEO", |
| 122 | + }, |
| 123 | + ], |
| 124 | + "icon": "lighthouse", |
| 125 | + "packageName": "@code-pushup/lighthouse-plugin", |
| 126 | + "slug": "lighthouse", |
| 127 | + "title": "Lighthouse", |
| 128 | + }, |
| 129 | + ], |
| 130 | +} |
| 131 | +`; |
0 commit comments