openapi-library / OpenAPIValidators

Use Jest or Chai to assert that HTTP responses satisfy an OpenAPI spec
MIT License
189 stars 35 forks source link

Support for Jest 29 in jest-openapi #297

Open MDG-DYell opened 1 year ago

MDG-DYell commented 1 year ago

Are you using OpenAPI 2, 3.0.X, or 3.1.0? OpenAPI 3.0

Would this solve a problem or make something easier? Yes, it would allow the matchers to work with Jest v29.

What would you like to happen? I'd like the matchers to correctly integrate with the global scope. Screenshot 2023-07-05 at 16 06 30

Describe alternatives you've considered I am not too familiar with Jest, so alternatives would just be replacing this package with another one. Which I'd have to go search for.

Additional context or screenshots Seems to work fine in Jest 27, but I am trying to upgrade the project to Jest 29, and hit this

Screenshot 2023-07-05 at 16 10 27

Are you going to resolve the issue? I lack sufficient experience with Typescript and Jest to know how I might resolve this.

IanLondon commented 8 months ago

Looks related to https://github.com/openapi-library/OpenAPIValidators/issues/285