You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: e2e/cli-e2e/tests/__snapshots__/collect.e2e.test.ts.snap
+158Lines changed: 158 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1696,3 +1696,161 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
1696
1696
],
1697
1697
}
1698
1698
`;
1699
+
1700
+
exports[`CLI collect > should run Lighthouse plugin that runs lighthouse CLI and creates report.json 1`] =`
1701
+
{
1702
+
"categories": [
1703
+
{
1704
+
"refs": [
1705
+
{
1706
+
"plugin": "lighthouse",
1707
+
"slug": "performance",
1708
+
"type": "group",
1709
+
"weight": 1,
1710
+
},
1711
+
],
1712
+
"slug": "performance",
1713
+
"title": "Performance",
1714
+
},
1715
+
{
1716
+
"refs": [
1717
+
{
1718
+
"plugin": "lighthouse",
1719
+
"slug": "accessibility",
1720
+
"type": "group",
1721
+
"weight": 1,
1722
+
},
1723
+
],
1724
+
"slug": "a11y",
1725
+
"title": "Accessibility",
1726
+
},
1727
+
{
1728
+
"refs": [
1729
+
{
1730
+
"plugin": "lighthouse",
1731
+
"slug": "best-practices",
1732
+
"type": "group",
1733
+
"weight": 1,
1734
+
},
1735
+
],
1736
+
"slug": "best-practices",
1737
+
"title": "Best Practices",
1738
+
},
1739
+
{
1740
+
"refs": [
1741
+
{
1742
+
"plugin": "lighthouse",
1743
+
"slug": "seo",
1744
+
"type": "group",
1745
+
"weight": 1,
1746
+
},
1747
+
],
1748
+
"slug": "seo",
1749
+
"title": "SEO",
1750
+
},
1751
+
{
1752
+
"isBinary": true,
1753
+
"refs": [
1754
+
{
1755
+
"plugin": "lighthouse",
1756
+
"slug": "pwa",
1757
+
"type": "group",
1758
+
"weight": 1,
1759
+
},
1760
+
],
1761
+
"slug": "pwa",
1762
+
"title": "PWA",
1763
+
},
1764
+
],
1765
+
"packageName": "@code-pushup/core",
1766
+
"plugins": [
1767
+
{
1768
+
"audits": [
1769
+
{
1770
+
"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/)",
1771
+
"slug": "largest-contentful-paint",
1772
+
"title": "Largest Contentful Paint",
1773
+
},
1774
+
{
1775
+
"description": "Service worker is the technology that enables your app to use many Progressive Web App features, such as offline, add to homescreen, and push notifications. With proper service worker and manifest implementations, browsers can proactively prompt users to add your app to their homescreen, which can lead to higher engagement. [Learn more about manifest installability requirements](https://developer.chrome.com/docs/lighthouse/pwa/installable-manifest/).",
1776
+
"slug": "installable-manifest",
1777
+
"title": "Web app manifest and service worker meet the installability requirements",
1778
+
},
1779
+
{
1780
+
"description": "Deprecated APIs will eventually be removed from the browser. [Learn more about deprecated APIs](https://developer.chrome.com/docs/lighthouse/best-practices/deprecations/).",
1781
+
"slug": "deprecations",
1782
+
"title": "Avoids deprecated APIs",
1783
+
},
1784
+
{
1785
+
"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.8/aria-allowed-attr).",
1786
+
"slug": "aria-allowed-attr",
1787
+
"title": "\`[aria-*]\` attributes match their roles",
1788
+
},
1789
+
{
1790
+
"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/).",
1791
+
"slug": "hreflang",
1792
+
"title": "Document has a valid \`hreflang\`",
1793
+
},
1794
+
],
1795
+
"groups": [
1796
+
{
1797
+
"refs": [
1798
+
{
1799
+
"slug": "largest-contentful-paint",
1800
+
"weight": 25,
1801
+
},
1802
+
],
1803
+
"slug": "performance",
1804
+
"title": "Performance",
1805
+
},
1806
+
{
1807
+
"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.",
1808
+
"refs": [
1809
+
{
1810
+
"slug": "aria-allowed-attr",
1811
+
"weight": 10,
1812
+
},
1813
+
],
1814
+
"slug": "accessibility",
1815
+
"title": "Accessibility",
1816
+
},
1817
+
{
1818
+
"refs": [
1819
+
{
1820
+
"slug": "deprecations",
1821
+
"weight": 5,
1822
+
},
1823
+
],
1824
+
"slug": "best-practices",
1825
+
"title": "Best Practices",
1826
+
},
1827
+
{
1828
+
"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).",
1829
+
"refs": [
1830
+
{
1831
+
"slug": "hreflang",
1832
+
"weight": 1,
1833
+
},
1834
+
],
1835
+
"slug": "seo",
1836
+
"title": "SEO",
1837
+
},
1838
+
{
1839
+
"description": "These checks validate the aspects of a Progressive Web App. [Learn what makes a good Progressive Web App](https://web.dev/articles/pwa-checklist).",
0 commit comments