Closed pilotak closed 3 years ago
when running the test visitApi
is called but visitOperation
is not. When running normally - visitOperation
is called
Solve by adding allowing ts extension in initialize
.
routesGlob: '**/*.{ts,js}',
routesIndexFileRegExp: /(?:index)?\.[tj]s$/,
When running the test with jest, routes from open-api are not available through exported
app
, I even tried to add a delay but that didn't help. If i add hard coded route it's there, so what is wrong?When running the project via
npm start
everything is fine, it's only failing when testing.app.ts
api.test.ts
full code https://github.com/pilotak/openapi-typescript-jwt/