Is it possible to configure the headers globally with the default value as { headers: { 'content-type': 'application/json' }}?
Currently everytime I try to do a mockResponseOnce it set the default header as 'Content-Type': [ 'text/plain;charset=UTF-8' ] by default, and I don't want to pass the headers to every mockResponseOnce calls as I don't have requests that return text/plain content:
Is it possible to configure the headers globally with the default value as
{ headers: { 'content-type': 'application/json' }}
? Currently everytime I try to do amockResponseOnce
it set the default header as'Content-Type': [ 'text/plain;charset=UTF-8' ]
by default, and I don't want to pass the headers to everymockResponseOnce
calls as I don't have requests that returntext/plain
content:// console.log after executing the request.