wrapInOpenApiTestServer()
Home > @backstage/backend-openapi-utils
> wrapInOpenApiTestServer
!!! THIS CURRENTLY ONLY SUPPORTS SUPERTEST !!! Running against supertest, we need some way to hit the optic proxy. This ensures that that happens at runtime when in the context of a yarn optic capture
command.
Signature:
wrapInOpenApiTestServer: (app: Express) => Server | Express
Parameters
Parameter |
Type |
Description |
---|---|---|
app |
Express |
Express router that would be passed to supertest's |
Server | Express
A wrapper around the express router (or the router untouched) that still works with supertest.