This repository has been archived by the owner on Oct 30, 2022. It is now read-only.
Serialization of fetch request needs implementation #331
Labels
good first issue
Good for newcomers
help wanted
Issue needs help
up-for-grabs
This issue is up for grabs
unmock-fetch package contains a method for creating a "fake"
fetch
that's expected to implement the Fetch API. When a user creates a call with the fake fetch, the request should be serialized to an ISerializedRequest object. There's a crude implementation for serialize.ts that does not yet handle request headers or body.I have written tests for the serialization features. They're skipped as they don't work yet, so the task would be to make those tests pass.
Note that the
fetch
interface also does not implement the case where "url" is not a plain string but aRequest
object. That would be a task for another PR.In summary, we would need:
Request
objectEach of these could be a PR of their own.
The text was updated successfully, but these errors were encountered: