Testing individual Edge Functions in isolation is doable by importing the raw source file, feeding the function a Request
and asserting on the Response
. You’d need to mock out the context
, but apart from context.next()
that should be pretty easy.
If you want to test multiple functions in interplay, we don’t have a good story for that.