Open matrunchyk opened 6 years ago
Hmm, I'm not sure if you actually test that in Jest because your test code is run in Node.js, not in an actual browser. You probably want to test SW using an e2e solution instead.
My plan is to use service-worker-mock to use cases provided in this article.
But it seems to be register-service-worker
doesn't allow to do so. Thanks anyway!
I had the same problem.
Hello, I'm trying to test my SW logic and this is my
test spec
I'm using:And it fails with the following error:
How do you do testing of SW using this package?