UNPKG

express-oas-generator

Version:

Module to automatically generate OpenAPI (Swagger) specification for existing ExpressJS 4.x REST API applications

12 lines (8 loc) 280 B
const { startServer } = require('../server'); async function setup(_config) { const server = startServer(); console.log('\nTest setup: Started the server.\n'); /** we'll use this in `teardown.js` to close the server */ global.server = server; } module.exports = setup;