Closed marienvo closed 3 years ago
Thanks for raising this! I'll add in a quick fix this for this. Was this only limited to 'get' or would other request types need to be added as well?
Thanks! Only the lowercase 'get' gave issues for us, no other request types as far as we've experienced.
In our project the browsers
fetch()
function seems to default the request method toget
(instead of uppercaseGET
); and since thesupportedMethods
array is all uppercase, this breaks our tests when running with the recorded mocks.Recording is fine though, but the JSON is incompatible (or lowercase
get
needs to be added to supportedMethods):This seems to 'fix' the issue:
const supportedMethods = ['get', 'GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'HEAD'];