Skip to content

Commit

Permalink
test(@nestjs/swagger): add manual test for 2afc3dc to manual-e2e.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Panzer1119 committed Jul 11, 2022
1 parent 2afc3dc commit 5c38773
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions e2e/manual-e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,16 @@ async function bootstrap() {
}
});

SwaggerModule.setup('/swagger-docs', app, document, {
customSiteTitle: 'Demo API - Swagger UI 3',
swaggerOptions: {
persistAuthorization: true,
defaultModelsExpandDepth: -1,
tagsSorter: (a, b) => a.localeCompare(b),
operationsSorter: (a, b) => a.get('id').localeCompare(b.get('id'))
}
});

USE_FASTIFY
? (app as NestFastifyApplication).useStaticAssets({
root: publicFolderPath,
Expand Down

0 comments on commit 5c38773

Please sign in to comment.