udacity / cloudflare-typescript-workers

Types and mocks for building a tested Typescript Cloudflare Worker, generates three NPM packages
Apache License 2.0
139 stars 12 forks source link

Consider switching from to edge-mock #33

Closed samuelcolvin closed 3 years ago

samuelcolvin commented 3 years ago

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:

  1. service-workers the project which service-worker-mock is a part of is no longer maintained.
  2. edge-mock provides support for KV store mocking out-of-the-box
  3. edge-mock properly supports ArrayBuffer and ReadableStream which service-worker-mock do does not
  4. edge-mock has close to 100% test coverage and is written in typescript.
  5. All the implementations provided by edge-mock are fully compliant with the types they implement in typescript.
13rac1 commented 3 years ago

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 3 years ago

Makes sense, thanks