Consider switching from to edge-mock
Closed this issue · 2 comments
samuelcolvin commented
Hi, you might consider switching from service-worker-mock
to edge-mock
(which I've just built).
Just a suggestion, feel free to close this if you like.
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-boxedge-mock
properly supportsArrayBuffer
andReadableStream
whichservice-worker-mock
do does notedge-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.
13rac1 commented
Hi! edge-mock
has a hardcoded dependency on @cloudflare/workers-types which regretably duplicates the types in this project. Please see #19 I'd prefer to sunset/handoff this project entirely.
samuelcolvin commented
Makes sense, thanks