How to get Service Worker working on Chrome Lighthouse?

Solution 1:

If I uncheck the clear cache option in lighthouse options it starts working.

Edit: As mentioned by Sean McCarthy below the correct name is "Clear storage"