worker-typescript-template
worker-typescript-template copied to clipboard
use edge-mock instead of service-worker-mock
I propose that you suggest the user of edge-mock
(which I've just built) instead of service-worker-mock
.
I've made the necessary changes here for the switch.
A few advantages of edge-mock
:
-
service-workers
the project whichservice-worker-mock
is a part of is no longer maintained -
edge-mock
provides support for KV store mocking out-of-the-box -
edge-mock
properly supportsArrayBuffer
andReadableStream
whichservice-worker-mock
does not -
edge-mock
has close to 100% test coverage and is written in typescript - All the implementations provided by
edge-mock
are fully compliant with the types they implement in typescript
I'm not really clear if I should be including changes to package-lock.json
, I assume from the number of changes that it's somehow very outdated.
Nice! Might update the edge-mock version here.