Answer
How do you test a PWA with Lighthouse?
Open Chrome DevTools, go to the Lighthouse panel, select the categories you want (Performance, PWA-related checks live under "Best Practices" in modern Lighthouse) and click "Analyze page load". Lighthouse reports whether your manifest is valid, whether a service worker is registered, and whether the page is served over HTTPS.
DevTools workflow
DevTools → Lighthouse tab → select device (mobile/desktop) → Analyze page load. Results include a report you can export as HTML or JSON.
CLI workflow
Install with npm install -g lighthouse, then run lighthouse https://example.com --view for the same report from the command line or CI.
What to check
The installability section under Application → Manifest in DevTools gives a more granular breakdown than Lighthouse alone if the install prompt is not firing.