kogosoftwarellc / open-api

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

[koa-openapi] testing status / upcoming contributions #762

Closed medfreeman closed 3 years ago

medfreeman commented 3 years ago

Hi & thanks again for the great work!

At last i'm able to contribute back.

While preparing the PR for issue #286 for koa, i noticed that the tests in sample-projects folder for koa are not run. Only the top-level test/sample-projects are run atm: https://github.com/kogosoftwarellc/open-api/blob/24d87763c621f0886d02dbe96b20364055c46125/packages/koa-openapi/test/sample-projects.ts

Would you be open to a PR to restore them? It's pretty much done on my side, only the without-basePath tests need a few changes in addition to enabling sample-projects.ts to load all the tests in mocha.

Bonus, should all the tests w/ express be transposed for koa?

It's kind of needed to enable my next contributions to be tested against koa:

We use https://github.com/ds300/patch-package to keep things sane, but it's time to merge back :)

Thanks!

medfreeman commented 3 years ago

Done in #763