We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version: "jest-fetch-mock": "^3.0.3", Node: v18.12.1
fetchMock.mockResponseOnce(null, { status: 400 }) // Returns "" fetchMock.mockResponseOnce(undefined, { status: 400 }) // Returns "" fetchMock.mockResponseOnce(() => new Promise((resolve, reject) => reject ({ status: 400}))) // Returns ""
I've also tried to get content-length header ( headers.get('content-length') ) , but it turns out it doesn't mock this property.
headers.get('content-length')
How can one get no response body at all? Am I missing something from the docs?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version: "jest-fetch-mock": "^3.0.3",
Node: v18.12.1
I've also tried to get content-length header (
headers.get('content-length')
) , but it turns out it doesn't mock this property.How can one get no response body at all? Am I missing something from the docs?
The text was updated successfully, but these errors were encountered: