You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our project the browsers fetch() function seems to default the request method to get (instead of uppercase GET); and since the supportedMethods 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'];
The text was updated successfully, but these errors were encountered:
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'];
The text was updated successfully, but these errors were encountered: