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
Error: expect(received).toSatisfyApiSpec() // Matches 'received' to a response defined in your API spec, then validates 'received' against it
expected received to satisfy the '201' response defined forendpoint 'GET /test'in your API spec
received did not satisfy it because: response must be null
received contained: { body: {}, text: 'Created' }
The '201' response defined forendpoint 'GET /test'in API spec: { '201': { description: 'Test description' } }
What did you expect to happen instead?
I expect the test to verify that there is a description for the HTTP status and the lack of a request body will not return an error.
Are you going to resolve the issue?
I'm not sure if I'm gonna make it
The text was updated successfully, but these errors were encountered:
Are you using jest or chai?
jest version 27.0.6 and jest-openapi version 0.14.2
Are you using OpenAPI 2, 3.0.X, or 3.1.0?
Version 3.0.0
Describe the bug clearly
If the endpoint response is described only by HTTP status without a body, the comparison will fail.
Steps to reproduce the bug:
What did you expect to happen instead?
I expect the test to verify that there is a description for the HTTP status and the lack of a request body will not return an error.
Are you going to resolve the issue?
I'm not sure if I'm gonna make it
The text was updated successfully, but these errors were encountered: