2 import * as request from 'supertest'
3 import { ServerInfo } from '../../../../shared/extra-utils'
4 import { cleanupTests, flushAndRunServer } from '../../../../shared/extra-utils/server/servers'
6 describe('Start and stop server without web client routes', function () {
9 before(async function () {
12 server = await flushAndRunServer(1, {}, [ '--no-client' ])
15 it('Should fail getting the client', function () {
16 const req = request(server.url)
19 return req.expect(404)
22 after(async function () {
23 await cleanupTests([ server ])