Skip to content

Commit

Permalink
refactor(plugin-lighthouse): update lighthouse and adopt tests (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Jun 12, 2024
1 parent 64d7ae8 commit 4f1a8b0
Show file tree
Hide file tree
Showing 15 changed files with 115 additions and 219 deletions.
6 changes: 0 additions & 6 deletions code-pushup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,6 @@ const config: CoreConfig = {
title: 'SEO',
refs: [lighthouseGroupRef('seo')],
},
{
slug: 'pwa',
title: 'PWA',
isBinary: true,
refs: [lighthouseGroupRef('pwa')],
},
{
slug: 'bug-prevention',
title: 'Bug prevention',
Expand Down
31 changes: 1 addition & 30 deletions e2e/cli-e2e/tests/__snapshots__/collect.e2e.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1727,19 +1727,6 @@ exports[`CLI collect > should run Lighthouse plugin that runs lighthouse CLI and
"slug": "seo",
"title": "SEO",
},
{
"isBinary": true,
"refs": [
{
"plugin": "lighthouse",
"slug": "pwa",
"type": "group",
"weight": 1,
},
],
"slug": "pwa",
"title": "PWA",
},
],
"packageName": "@code-pushup/core",
"plugins": [
Expand All @@ -1750,18 +1737,13 @@ exports[`CLI collect > should run Lighthouse plugin that runs lighthouse CLI and
"slug": "largest-contentful-paint",
"title": "Largest Contentful Paint",
},
{
"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/).",
"slug": "installable-manifest",
"title": "Web app manifest and service worker meet the installability requirements",
},
{
"description": "Deprecated APIs will eventually be removed from the browser. [Learn more about deprecated APIs](https://developer.chrome.com/docs/lighthouse/best-practices/deprecations/).",
"slug": "deprecations",
"title": "Avoids deprecated APIs",
},
{
"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).",
"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.9/aria-allowed-attr).",
"slug": "aria-allowed-attr",
"title": "\`[aria-*]\` attributes match their roles",
},
Expand Down Expand Up @@ -1814,17 +1796,6 @@ exports[`CLI collect > should run Lighthouse plugin that runs lighthouse CLI and
"slug": "seo",
"title": "SEO",
},
{
"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).",
"refs": [
{
"slug": "installable-manifest",
"weight": 2,
},
],
"slug": "pwa",
"title": "PWA",
},
],
"icon": "lighthouse",
"slug": "lighthouse",
Expand Down
8 changes: 0 additions & 8 deletions examples/react-todos-app/code-pushup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ export default {
'deprecations',
// seo category
'hreflang',
// pwa category
'installable-manifest',
],
chromeFlags: DEFAULT_FLAGS.concat(['--headless']),
}),
Expand All @@ -65,12 +63,6 @@ export default {
title: 'SEO',
refs: [lighthouseGroupRef('seo')],
},
{
slug: 'pwa',
title: 'PWA',
isBinary: true,
refs: [lighthouseGroupRef('pwa')],
},
{
slug: 'code-coverage',
title: 'Code coverage',
Expand Down
Loading

0 comments on commit 4f1a8b0

Please sign in to comment.