UNPKG

@bitdiver/result-rest-api

Version:
14 lines (11 loc) 357 B
import { startServer, getLogAdapter } from '../lib/index' const LOGGER = getLogAdapter() // disable console logging LOGGER.writeConsole = true test('Start und Stop Server', async done => { const { httpServer, express } = await startServer() expect(httpServer).not.toBeUndefined() expect(express).not.toBeUndefined() httpServer.close() done() })