kogosoftwarellc / open-api

A Monorepo of various packages to power OpenAPI in node
MIT License
895 stars 237 forks source link

Supertest integration tests fail after update to express-openapi 12.x.x #882

Open Patrickkooijman opened 1 year ago

Patrickkooijman commented 1 year ago

I was trying to update my express-openapi dependency to version 12.x. After updating all seem to work fine, the application runs as normal, and also all regular unit tests fail. However when running the integration tests using supertest, I run into this error:

A jest worker process (pid=37709) was terminated by another process: signal=SIGSEGV, exitCode=null. Operating system logs may contain more information on why this occurred.

The issue seems related to this one, but the solutions mentioned in the ticket don't work for my case.

I created a small demo project to show this error: https://github.com/Patrickkooijman/express-openapi-supertest/tree/master