Not 100% sure how much it's worth adding to the testing examples, as needs will vary.
There's already a simple fetch mock in service-worker-mock, but it didn't seem like it had type definitions out of the box, or maybe I was misusing it. That's why I added the dependency on jest-fetch-mock.
Not 100% sure how much it's worth adding to the testing examples, as needs will vary.
There's already a simple fetch mock in service-worker-mock, but it didn't seem like it had type definitions out of the box, or maybe I was misusing it. That's why I added the dependency on jest-fetch-mock.